a failing test for pytest issue419
This commit is contained in:
@@ -6,6 +6,7 @@ from xdist.dsession import (
|
|||||||
)
|
)
|
||||||
from _pytest import main as outcome
|
from _pytest import main as outcome
|
||||||
import py
|
import py
|
||||||
|
import pytest
|
||||||
import execnet
|
import execnet
|
||||||
|
|
||||||
XSpec = execnet.XSpec
|
XSpec = execnet.XSpec
|
||||||
@@ -209,3 +210,16 @@ def test_report_collection_diff_different():
|
|||||||
report_collection_diff(from_collection, to_collection, 1, 2)
|
report_collection_diff(from_collection, to_collection, 1, 2)
|
||||||
except AssertionError as e:
|
except AssertionError as e:
|
||||||
assert py.builtin._totext(e) == error_message
|
assert py.builtin._totext(e) == error_message
|
||||||
|
|
||||||
|
@pytest.mark.xfail(reason="duplicate test ids not supported yet")
|
||||||
|
def test_pytest_issue419(testdir):
|
||||||
|
testdir.makepyfile("""
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
@pytest.mark.parametrize('birth_year', [1988, 1988, ])
|
||||||
|
def test_2011_table(birth_year):
|
||||||
|
pass
|
||||||
|
""")
|
||||||
|
reprec = testdir.inline_run("-n1")
|
||||||
|
reprec.assertoutcome(passed=2)
|
||||||
|
assert 0
|
||||||
|
|||||||
@@ -142,6 +142,8 @@ class LoadScheduling:
|
|||||||
node.gateway.id,
|
node.gateway.id,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# all collections are the same, good.
|
||||||
|
# we now create an index
|
||||||
self.pending = col
|
self.pending = col
|
||||||
if not col:
|
if not col:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user