Skip to content
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

Fix/weird travis test fail #1587

Merged

Conversation

WilliamHPNielsen
Copy link
Contributor

For some combinations of pytest version 4.6.1 and [we don't quite know what] version ?, tests that use assert all(...) is True or assert not all(...) fail.

Since we can't really figure out which package versions to avoid, let's avoid using that syntax instead.

Changes proposed in this pull request:

  • Reword two tests

@astafan8

...and pray that this will work on Travis, linux, pytest 4.6.1
Why..? It looks like the assert cannot handle an == on the same line
@codecov
Copy link

codecov bot commented Jun 3, 2019

Codecov Report

Merging #1587 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1587   +/-   ##
=======================================
  Coverage   72.18%   72.18%           
=======================================
  Files         112      112           
  Lines       12293    12293           
=======================================
  Hits         8874     8874           
  Misses       3419     3419

@astafan8 astafan8 merged commit a4d027b into microsoft:master Jun 3, 2019
@astafan8 astafan8 deleted the fix/weird_travis_test_fail branch June 3, 2019 15:24
giulioungaretti pushed a commit that referenced this pull request Jun 3, 2019
Merge: e2bce7c 8cb620b
Author: Mikhail Astafev <astafan8@gmail.com>

    Merge pull request #1587 from WilliamHPNielsen/fix/weird_travis_test_fail
@WilliamHPNielsen
Copy link
Contributor Author

Just for completeness, I think it's this issue that we saw: pytest-dev/pytest#5372

So the problem would also go away in pytest version 4.6.2, it seems.

@astafan8
Copy link
Contributor

astafan8 commented Jun 4, 2019

thanks for the completeness!

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.

2 participants