Discovery-based unittest extension for Python
Go to file
Miro Hrončok a02b950028 Python 3.11.0a2 fixes
The error was:

    + /usr/bin/python3 selftest.py
    Traceback (most recent call last):
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/plugins/manager.py", line 250, in __getattr__
        return self._proxies[call]
               ~~~~~~~~~~~~~^^^^^^
    KeyError: 'loadTestsFromModule'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/builddir/build/BUILD/nose-1.3.7/selftest.py", line 60, in <module>
        nose.run_exit()
        ^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/core.py", line 118, in __init__
        unittest.TestProgram.__init__(
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.11/unittest/main.py", line 101, in __init__
        self.runTests()
        ^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/core.py", line 207, in runTests
        result = self.testRunner.run(self.test)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/core.py", line 62, in run
        test(result)
        ^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/suite.py", line 177, in __call__
        return self.run(*arg, **kw)
               ^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/suite.py", line 224, in run
        test(orig)
        ^^^^^^^^^^
      File "/usr/lib64/python3.11/unittest/suite.py", line 84, in __call__
        return self.run(*args, **kwds)
               ^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/suite.py", line 72, in run
        for test in self._tests:
        ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/suite.py", line 99, in _get_tests
        for test in self.test_generator:
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/loader.py", line 190, in loadTestsFromDir
        yield self.loadTestsFromName(
              ^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/loader.py", line 430, in loadTestsFromName
        return self.loadTestsFromModule(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/loader.py", line 353, in loadTestsFromModule
        tests.extend(self.loadTestsFromDir(module_path))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/loader.py", line 182, in loadTestsFromDir
        yield self.loadTestsFromName(
              ^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/loader.py", line 430, in loadTestsFromName
        return self.loadTestsFromModule(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/loader.py", line 355, in loadTestsFromModule
        for test in self.config.plugins.loadTestsFromModule(module, path):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/plugins/manager.py", line 252, in __getattr__
        proxy = self.proxyClass(call, self._plugins)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/plugins/manager.py", line 96, in __init__
        self.addPlugin(p, call)
        ^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/nose-1.3.7/build/tests/nose/plugins/manager.py", line 108, in addPlugin
        len(inspect.getargspec(meth)[0]) == 2:
            ^^^^^^^^^^^^^^^^^^
    AttributeError: module 'inspect' has no attribute 'getargspec'
2021-11-09 15:21:32 +01:00
.gitignore Update to 1.3.7 (#1227345) 2015-06-03 06:06:30 -06:00
python-nose-coverage4.patch Add patch to fix build with coverage 4.1 2016-11-09 16:22:40 -07:00
python-nose-no-use_2to3.patch Fix build with setuptools 58+, call /usr/bin/2to3 instead of setup(use_2to3=True) 2021-11-01 14:47:32 +01:00
python-nose-py35.patch Add upstream patch to fix python 3.5 compat 2016-11-15 14:31:09 -07:00
python-nose-py36.patch Patched to fix compatibility with Python 3.6 2016-12-12 15:15:02 +01:00
python-nose-py38.patch Add patch for Python 3.8 compatibility 2019-05-17 15:46:42 +02:00
python-nose-py311.patch Python 3.11.0a2 fixes 2021-11-09 15:21:32 +01:00
python-nose-readunicode.patch Add upstream patch to fix python 3.5 compat 2016-11-15 14:31:09 -07:00
python-nose-unicode.patch Add upstream patch to fix python 3.5 compat 2016-11-15 14:31:09 -07:00
python-nose.spec Python 3.11.0a2 fixes 2021-11-09 15:21:32 +01:00
sources Update to 1.3.7 (#1227345) 2015-06-03 06:06:30 -06:00