Skip to content

Tests cleanups #749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 25, 2019
Merged

Tests cleanups #749

merged 4 commits into from
Mar 25, 2019

Conversation

adrian17
Copy link
Contributor

(Didn't touch cpython_bytecode tests, as they don't seem to be working anyway?)
This massively speeds up time of running all tests, to 5-10 seconds max.

@codecov-io
Copy link

Codecov Report

Merging #749 into master will decrease coverage by 1.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #749      +/-   ##
==========================================
- Coverage   42.88%   41.86%   -1.03%     
==========================================
  Files          81       81              
  Lines       17019    17019              
  Branches     4244     4244              
==========================================
- Hits         7299     7125     -174     
- Misses       7953     8139     +186     
+ Partials     1767     1755      -12
Impacted Files Coverage Δ
vm/src/obj/objbuiltinfunc.rs 50% <0%> (-25%) ⬇️
parser/src/ast.rs 14.52% <0%> (-20.12%) ⬇️
parser/src/token.rs 28.57% <0%> (-14.29%) ⬇️
vm/src/obj/objfunction.rs 36.92% <0%> (-10.77%) ⬇️
vm/src/obj/objmodule.rs 56.66% <0%> (-10%) ⬇️
vm/src/obj/objweakref.rs 91.3% <0%> (-8.7%) ⬇️
vm/src/obj/objfilter.rs 57.44% <0%> (-6.39%) ⬇️
vm/src/obj/objstaticmethod.rs 40.62% <0%> (-6.25%) ⬇️
vm/src/obj/objclassmethod.rs 44.11% <0%> (-5.89%) ⬇️
vm/src/obj/objzip.rs 55.55% <0%> (-5.56%) ⬇️
... and 30 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9989795...2131a81. Read the comment docs.

@@ -1,2 +0,0 @@
x = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this file? I agree the test makes little sense, but still, it is a valid test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because other tests in list.py do the same job. No point testing the same thing twice.

@windelbouwman windelbouwman merged commit e47032f into RustPython:master Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants