diff options
Diffstat (limited to 'debian/patches/Use-valid-test-module-names.patch')
-rw-r--r-- | debian/patches/Use-valid-test-module-names.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/Use-valid-test-module-names.patch b/debian/patches/Use-valid-test-module-names.patch new file mode 100644 index 0000000..d8c6f3c --- /dev/null +++ b/debian/patches/Use-valid-test-module-names.patch @@ -0,0 +1,40 @@ +From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org> +Date: Fri, 1 Mar 2024 00:05:18 +0100 +Subject: Use valid test module names + +The pytest collector only collects test_*.py and *_test.py files now +--- + tests/test_pytest_arraydiff.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/tests/test_pytest_arraydiff.py b/tests/test_pytest_arraydiff.py +index da603fa..9328600 100644 +--- a/tests/test_pytest_arraydiff.py ++++ b/tests/test_pytest_arraydiff.py +@@ -61,7 +61,7 @@ def test_fails(): + + tmpdir = tempfile.mkdtemp() + +- test_file = os.path.join(tmpdir, 'test.py') ++ test_file = os.path.join(tmpdir, 'test_fails.py') + with open(test_file, 'w') as f: + f.write(TEST_FAILING) + +@@ -89,7 +89,7 @@ def test_generate(file_format): + + tmpdir = tempfile.mkdtemp() + +- test_file = os.path.join(tmpdir, 'test.py') ++ test_file = os.path.join(tmpdir, 'test_generate.py') + with open(test_file, 'w') as f: + f.write(TEST_GENERATE.format(file_format=file_format)) + +@@ -123,7 +123,7 @@ def test_default_format(file_format): + + tmpdir = tempfile.mkdtemp() + +- test_file = os.path.join(tmpdir, 'test.py') ++ test_file = os.path.join(tmpdir, 'test_default.py') + with open(test_file, 'w') as f: + f.write(TEST_DEFAULT) + |