]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: we no longer use 'testscenarios' or 'subunit.tests.testsuite'
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 4 Dec 2025 22:09:26 +0000 (11:09 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 15 Jan 2026 01:48:37 +0000 (01:48 +0000)
If 'python3-testscenarios' is installed, the test is bound to fail,
like this:

$ make test TESTS=subunit
[...]
[1(0)/2 at 0s] subunit.tests.test_suite
subunit.tests.test_suite.unittest.loader._FailedTest.subunit(none)
REASON: Exception: Exception: ImportError: Failed to import test module: subunit
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 137, in loadTestsFromName
    module = __import__(module_name)
             ^^^^^^^^^^^^^^^^^^^^^^^
     ModuleNotFoundError: No module named 'subunit'

I am not certain when "subunit.tests.test_suite" would have
successfully resolved.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
selftest/tests.py

index ae6a16bf014af9269eac1c07e4bfe3f6023b296d..7eace3cbced0e798755771364802f8ae682251c7 100644 (file)
@@ -54,12 +54,6 @@ if have_man_pages_support:
         environ={'LD_PRELOAD': ''}
     )
 
-try:
-    import testscenarios
-except ImportError:
-    skiptestsuite("subunit", "testscenarios not available")
-else:
-    planpythontestsuite("none", "subunit.tests.test_suite")
 planpythontestsuite("none", "samba.tests.blackbox.ndrdump")
 planpythontestsuite("none", "samba.tests.blackbox.check_output")