You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like between pytest 2.9.2 and 3.0.0, some change has been introduced that causes incorrect values to be passed to parameterized tests. For instance, given the two tests:
It looks like between pytest 2.9.2 and 3.0.0, some change has been introduced that causes incorrect values to be passed to parameterized tests. For instance, given the two tests:
@pytest.mark.parametrize("xid, fromPath, toPath, result", [
("xid1", "/usr/bin/who", "/tmp/who", True),
])
def testFileXferLocal(network, xid, fromPath, toPath, result):
...
AND
@pytest.mark.parametrize("xid, fromPath, toPath, result", [
("xid3-1","/tmp/fwd-test-dir-copy", "/tmp/fwd-output-dir-copy", True)
])
def testFolderXferLocal(network, xid, fromPath, toPath, result):
...
The value '/usr/bin/who' is being passed to our test 'testFolderXferLocal' for 'fromPath' instead of the expected '/tmp/fwd-test-dir-copy'.
The version of pytest that works correctly is 2.9.2, while pytest 3.0.0 causes the erroneus behavior described.
Thanks for submitting an issue!
Here's a quick checklist in what to include:
pip list
of the virtual environment you are usingThe text was updated successfully, but these errors were encountered: