Skip to content

Add test for mtime issue in #4903#4921

Merged
nicoddemus merged 1 commit intopytest-dev:masterfrom
nicoddemus:mtime-test-for-4903
Mar 14, 2019
Merged

Add test for mtime issue in #4903#4921
nicoddemus merged 1 commit intopytest-dev:masterfrom
nicoddemus:mtime-test-for-4903

Conversation

@nicoddemus
Copy link
Member

As suggested in #4903 (comment).

I verified this manually against features (which still doesn't contain the original patch) and verified that the test breaks as expected with the original exception.

@nicoddemus nicoddemus mentioned this pull request Mar 14, 2019
6 tasks
)
# use unsigned long timestamp which overflows signed long,
# which was the cause of the bug
timestamp = 2 ** 32 - 1
Copy link
Contributor

Choose a reason for hiding this comment

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

You could add another test with 2**32 + 1 - that is where the added 0xFFFFFFFF of my patch comes into play.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good suggestion, done. 👍

@nicoddemus nicoddemus force-pushed the mtime-test-for-4903 branch from 2748ecc to bd70f5c Compare March 14, 2019 13:16
@codecov
Copy link

codecov bot commented Mar 14, 2019

Codecov Report

Merging #4921 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4921      +/-   ##
==========================================
+ Coverage   95.69%   95.71%   +0.02%     
==========================================
  Files         113      113              
  Lines       25170    25176       +6     
  Branches     2498     2498              
==========================================
+ Hits        24086    24097      +11     
+ Misses        766      764       -2     
+ Partials      318      315       -3
Impacted Files Coverage Δ
testing/test_assertrewrite.py 83.68% <100%> (+0.14%) ⬆️
src/_pytest/terminal.py 91.74% <0%> (+0.82%) ⬆️

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 7441652...bd70f5c. Read the comment docs.

@nicoddemus nicoddemus merged commit a2b921f into pytest-dev:master Mar 14, 2019
@nicoddemus nicoddemus deleted the mtime-test-for-4903 branch March 14, 2019 13:56
@blueyed
Copy link
Contributor

blueyed commented Mar 14, 2019

Thank you!

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