1.4.0: python module test suite is failing

Bug #1939693 reported by Tomasz Kloczko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subunit
Invalid
Undecided
Unassigned

Bug Description

python 3.8.11, testtools 2.5.0.

Without installed testtools test suite is failing because this module is required.
It is kind of catch 22.
Please let me know if you will need more details.

make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/subunit-1.4.0'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/subunit-1.4.0'
SHELL_SHARE='./shell/share/' \
PYTHONPATH='/home/tkloczko/rpmbuild/BUILD/subunit-1.4.0/python':'/home/tkloczko/rpmbuild/BUILD/subunit-1.4.0': \
/usr/bin/python3 -m testtools.run all_tests.test_suite
/usr/lib64/python3.8/runpy.py:127: RuntimeWarning: 'testtools.run' found in sys.modules after import of package 'testtools', but prior to execution of 'testtools.run'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
Traceback (most recent call last):
  File "/usr/lib64/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.8/site-packages/testtools/run.py", line 260, in <module>
    main(sys.argv, sys.stdout)
  File "/usr/lib/python3.8/site-packages/testtools/run.py", line 256, in main
    program = TestProgram(argv=argv, testRunner=partial(TestToolsTestRunner, stdout=stdout),
  File "/usr/lib/python3.8/site-packages/testtools/run.py", line 164, in __init__
    self.parseArgs(argv)
  File "/usr/lib64/python3.8/unittest/main.py", line 147, in parseArgs
    self.createTests()
  File "/usr/lib64/python3.8/unittest/main.py", line 158, in createTests
    self.test = self.testLoader.loadTestsFromNames(self.testNames,
  File "/usr/lib64/python3.8/unittest/loader.py", line 220, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python3.8/unittest/loader.py", line 220, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python3.8/unittest/loader.py", line 205, in loadTestsFromName
    test = obj()
  File "/home/tkloczko/rpmbuild/BUILD/subunit-1.4.0/all_tests.py", line 33, in test_suite
    result.addTest(subunit.test_suite())
  File "/home/tkloczko/rpmbuild/BUILD/subunit-1.4.0/python/subunit/__init__.py", line 169, in test_suite
    import subunit.tests
  File "/home/tkloczko/rpmbuild/BUILD/subunit-1.4.0/python/subunit/tests/__init__.py", line 20, in <module>
    from testscenarios import generate_scenarios
ModuleNotFoundError: No module named 'testscenarios'
make[1]: *** [Makefile:1606: check-local] Error 1

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

tests_require is set for subunit and includes testscenarios

Changed in subunit:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.