From fea77e6a659c85b09a9fac6d802acebfe81f8746 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 23 Jun 2019 11:15:15 -0700 Subject: [PATCH] don't use randomly for two tests which assert ordering --- testing/python/integration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/python/integration.py b/testing/python/integration.py index 0b87fea3327..c54e81665d3 100644 --- a/testing/python/integration.py +++ b/testing/python/integration.py @@ -212,7 +212,7 @@ def test_someting(normpath, abspath, tmpdir): assert os.path.basename("123") == "mock_basename" """ ) - reprec = testdir.inline_run() + reprec = testdir.inline_run("-p", "no:randomly") reprec.assertoutcome(passed=2) calls = reprec.getcalls("pytest_runtest_logreport") funcnames = [ @@ -238,7 +238,7 @@ def test_three(abspath): pass """ ) - reprec = testdir.inline_run() + reprec = testdir.inline_run("-p", "no:randomly") calls = reprec.getreports("pytest_runtest_logreport") calls = [x for x in calls if x.when == "call"] names = [x.nodeid.split("::")[-1] for x in calls] @@ -442,5 +442,5 @@ def test_params(a, b): pass """ ) - res = testdir.runpytest("--collect-only") + res = testdir.runpytest("--collect-only", "-p", "no:randomly") res.stdout.fnmatch_lines(["*spam-2*", "*ham-2*"])