Fix serialization report tests

No idea why using "-n1" on one of the those tests makes the
second test to fail.

See pytest-dev/pytest-xdist#202 for a full description.
This commit is contained in:
Bruno Oliveira
2017-08-07 20:21:40 -03:00
parent 5dc87143ad
commit 435e5e8ac5

View File

@@ -118,7 +118,7 @@ class TestReportSerialization:
def test_repr_entry():
x = 0
assert x
""", '--showlocals', '-n1')
""", '--showlocals')
reports = reprec.getreports("pytest_runtest_logreport")
assert len(reports) == 3
rep = reports[1]
@@ -143,7 +143,7 @@ class TestReportSerialization:
def test_repr_entry_native():
x = 0
assert x
""", '--tb=native', '-n1')
""", '--tb=native')
reports = reprec.getreports("pytest_runtest_logreport")
assert len(reports) == 3
rep = reports[1]