-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
topic: rewriterelated to the assertion rewrite mechanismrelated to the assertion rewrite mechanismtype: bugproblem that needs to be addressedproblem that needs to be addressedtype: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously
Description
When running the following example with pytest 4.6.1 with python 3.6 from conda, the test passes, however when running with the same pytest version with python 3.7 the second assert statement fails
def test_example():
assert all(list(x for x in [True, False] if x))
assert all(x for x in [True, False] if x)
def test_example():
assert all(list(x for x in [True, False] if x))
> assert all(x for x in [True, False] if x)
E assert False
pytest_example.py:4: AssertionError
Conda requirements file:
name: pytest_test
channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- pytest
bootandy, nicoddemus, FabioLuporini and georgebisbas
Metadata
Metadata
Assignees
Labels
topic: rewriterelated to the assertion rewrite mechanismrelated to the assertion rewrite mechanismtype: bugproblem that needs to be addressedproblem that needs to be addressedtype: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously