Skip to content

2.5.0 + master (b68af1b0): pytest is failing #332

Open
@kloczek

Description

@kloczek

I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-testtools-2.5.0-8.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-testtools-2.5.0-8.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -p no:randomly
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0
plugins: pyfakefs-4.5.6
collected 1376 items

testtools/tests/test_assert_that.py .............                                                                                                                    [  0%]
testtools/tests/test_compat.py .....................                                                                                                                 [  2%]
testtools/tests/test_content.py ......................................                                                                                               [  5%]
testtools/tests/test_content_type.py .........                                                                                                                       [  5%]
testtools/tests/test_distutilscmd.py ...                                                                                                                             [  6%]
testtools/tests/test_fixturesupport.py ........                                                                                                                      [  6%]
testtools/tests/test_helpers.py ...                                                                                                                                  [  6%]
testtools/tests/test_monkey.py ..............                                                                                                                        [  7%]
testtools/tests/test_run.py ............                                                                                                                             [  8%]
testtools/tests/test_runtest.py ........................                                                                                                             [ 10%]
testtools/tests/test_tags.py ..........                                                                                                                              [ 11%]
testtools/tests/test_testcase.py ..................................................................................................................F................ [ 20%]
............................                                                                                                                                         [ 22%]
testtools/tests/test_testresult.py FF............................................................................................................................... [ 32%]
.................................................................................................................................................................... [ 44%]
.......................................................FFF.......................................................................................................... [ 56%]
......s.....................................................................................................x..ss.......s..x..ss.......s............................ [ 67%]
..                                                                                                                                                                   [ 68%]
testtools/tests/test_testsuite.py .................                                                                                                                  [ 69%]
testtools/tests/test_with_with.py ..........                                                                                                                         [ 70%]
testtools/tests/matchers/test_basic.py FFFF....................................................................                                                      [ 75%]
testtools/tests/matchers/test_const.py FFFF.........                                                                                                                 [ 76%]
testtools/tests/matchers/test_datastructures.py FFFF.........................                                                                                        [ 78%]
testtools/tests/matchers/test_dict.py FFFF...................................                                                                                        [ 81%]
testtools/tests/matchers/test_doctest.py FFFF............                                                                                                            [ 82%]
testtools/tests/matchers/test_exception.py FFFF..............................                                                                                        [ 84%]
testtools/tests/matchers/test_filesystem.py ............................                                                                                             [ 86%]
testtools/tests/matchers/test_higherorder.py FFFF........................................                                                                            [ 90%]
testtools/tests/matchers/test_impl.py ...........                                                                                                                    [ 90%]
testtools/tests/matchers/test_warnings.py FFFF...................................                                                                                    [ 93%]
testtools/tests/twistedsupport/test_deferred.py ....                                                                                                                 [ 93%]
testtools/tests/twistedsupport/test_matchers.py ..............                                                                                                       [ 94%]
testtools/tests/twistedsupport/test_runtest.py ..........................................                                                                            [ 98%]
testtools/tests/twistedsupport/test_spinner.py ...........................                                                                                           [100%]

================================================================================= FAILURES =================================================================================
________________________________________________________________ TestRunTwiceNondeterministic.test_runTwice ________________________________________________________________
'NoneType' object is not iterable

During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:

testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/runtest.py", line 193, in _run_user
    return fn(*args, **kwargs)
  File "/home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/testcase.py", line 702, in _run_test_method
    return self._get_test_method()()
  File "/home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/tests/test_testcase.py", line 1440, in test_runTwice
    test = self.case
AttributeError: 'TestRunTwiceNondeterministic' object has no attribute 'case'
____________________________________________________________ TestControlContract.test_initially_not_shouldStop _____________________________________________________________

self = <testtools.tests.test_testresult.TestControlContract object at 0x7f5a2eccb940>

    def test_initially_not_shouldStop(self):
        # A result is not set to stop initially.
>       result = self.makeResult()
E       AttributeError: 'TestControlContract' object has no attribute 'makeResult'

testtools/tests/test_testresult.py:142: AttributeError
______________________________________________________________ TestControlContract.test_stop_sets_shouldStop _______________________________________________________________

self = <testtools.tests.test_testresult.TestControlContract object at 0x7f5a2eccb910>

    def test_stop_sets_shouldStop(self):
        # Calling 'stop()' sets 'shouldStop' to True.
>       result = self.makeResult()
E       AttributeError: 'TestControlContract' object has no attribute 'makeResult'

testtools/tests/test_testresult.py:147: AttributeError
________________________________________________________________ TestStreamResultContract.test_startTestRun ________________________________________________________________

self = <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f5a2ec5abb0>

    def test_startTestRun(self):
>       result = self._make_result()

testtools/tests/test_testresult.py:510:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f5a2ec5abb0>

    def _make_result(self):
>       raise NotImplementedError(self._make_result)
E       NotImplementedError: <bound method TestStreamResultContract._make_result of <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f5a2ec5abb0>>

testtools/tests/test_testresult.py:507: NotImplementedError
___________________________________________________________________ TestStreamResultContract.test_files ____________________________________________________________________

self = <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f5a2ebe20a0>

    def test_files(self):
        # Test parameter combinations when files are being emitted.
>       result = self._make_result()

testtools/tests/test_testresult.py:516:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f5a2ebe20a0>

    def _make_result(self):
>       raise NotImplementedError(self._make_result)
E       NotImplementedError: <bound method TestStreamResultContract._make_result of <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f5a2ebe20a0>>

testtools/tests/test_testresult.py:507: NotImplementedError
________________________________________________________________ TestStreamResultContract.test_test_status _________________________________________________________________

self = <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f5a2ebe2340>

    def test_test_status(self):
        # Tests non-file attachment parameter combinations.
>       result = self._make_result()

testtools/tests/test_testresult.py:534:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f5a2ebe2340>

    def _make_result(self):
>       raise NotImplementedError(self._make_result)
E       NotImplementedError: <bound method TestStreamResultContract._make_result of <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f5a2ebe2340>>

testtools/tests/test_testresult.py:507: NotImplementedError
_________________________________________________________________ TestMatchersInterface.test_matches_match _________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea46730>

    def test_matches_match(self):
>       matcher = self.matches_matcher
E       AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'

testtools/tests/matchers/helpers.py:11: AttributeError
____________________________________________________________________ TestMatchersInterface.test__str__ _____________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea46190>

    def test__str__(self):
        # [(expected, object to __str__)].
        from testtools.matchers._doctest import DocTestMatches
>       examples = self.str_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'

testtools/tests/matchers/helpers.py:24: AttributeError
______________________________________________________________ TestMatchersInterface.test_describe_difference ______________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea46610>

    def test_describe_difference(self):
        # [(expected, matchee, matcher), ...]
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:30: AttributeError
_______________________________________________________________ TestMatchersInterface.test_mismatch_details ________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea7b0a0>

    def test_mismatch_details(self):
        # The mismatch object must provide get_details, which must return a
        # dictionary mapping names to Content objects.
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:38: AttributeError
_________________________________________________________________ TestMatchersInterface.test_matches_match _________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e9b5e80>

    def test_matches_match(self):
>       matcher = self.matches_matcher
E       AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'

testtools/tests/matchers/helpers.py:11: AttributeError
____________________________________________________________________ TestMatchersInterface.test__str__ _____________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e9b5a60>

    def test__str__(self):
        # [(expected, object to __str__)].
        from testtools.matchers._doctest import DocTestMatches
>       examples = self.str_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'

testtools/tests/matchers/helpers.py:24: AttributeError
______________________________________________________________ TestMatchersInterface.test_describe_difference ______________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e9b53d0>

    def test_describe_difference(self):
        # [(expected, matchee, matcher), ...]
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:30: AttributeError
_______________________________________________________________ TestMatchersInterface.test_mismatch_details ________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea5ed30>

    def test_mismatch_details(self):
        # The mismatch object must provide get_details, which must return a
        # dictionary mapping names to Content objects.
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:38: AttributeError
_________________________________________________________________ TestMatchersInterface.test_matches_match _________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2eba5dc0>

    def test_matches_match(self):
>       matcher = self.matches_matcher
E       AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'

testtools/tests/matchers/helpers.py:11: AttributeError
____________________________________________________________________ TestMatchersInterface.test__str__ _____________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2eba56d0>

    def test__str__(self):
        # [(expected, object to __str__)].
        from testtools.matchers._doctest import DocTestMatches
>       examples = self.str_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'

testtools/tests/matchers/helpers.py:24: AttributeError
______________________________________________________________ TestMatchersInterface.test_describe_difference ______________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2eba5e50>

    def test_describe_difference(self):
        # [(expected, matchee, matcher), ...]
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:30: AttributeError
_______________________________________________________________ TestMatchersInterface.test_mismatch_details ________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2eba5f70>

    def test_mismatch_details(self):
        # The mismatch object must provide get_details, which must return a
        # dictionary mapping names to Content objects.
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:38: AttributeError
_________________________________________________________________ TestMatchersInterface.test_matches_match _________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e8f0d60>

    def test_matches_match(self):
>       matcher = self.matches_matcher
E       AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'

testtools/tests/matchers/helpers.py:11: AttributeError
____________________________________________________________________ TestMatchersInterface.test__str__ _____________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e8f0f40>

    def test__str__(self):
        # [(expected, object to __str__)].
        from testtools.matchers._doctest import DocTestMatches
>       examples = self.str_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'

testtools/tests/matchers/helpers.py:24: AttributeError
______________________________________________________________ TestMatchersInterface.test_describe_difference ______________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e8f0b20>

    def test_describe_difference(self):
        # [(expected, matchee, matcher), ...]
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:30: AttributeError
_______________________________________________________________ TestMatchersInterface.test_mismatch_details ________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e8f06a0>

    def test_mismatch_details(self):
        # The mismatch object must provide get_details, which must return a
        # dictionary mapping names to Content objects.
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:38: AttributeError
_________________________________________________________________ TestMatchersInterface.test_matches_match _________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e90a220>

    def test_matches_match(self):
>       matcher = self.matches_matcher
E       AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'

testtools/tests/matchers/helpers.py:11: AttributeError
____________________________________________________________________ TestMatchersInterface.test__str__ _____________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e90a460>

    def test__str__(self):
        # [(expected, object to __str__)].
        from testtools.matchers._doctest import DocTestMatches
>       examples = self.str_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'

testtools/tests/matchers/helpers.py:24: AttributeError
______________________________________________________________ TestMatchersInterface.test_describe_difference ______________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e90a040>

    def test_describe_difference(self):
        # [(expected, matchee, matcher), ...]
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:30: AttributeError
_______________________________________________________________ TestMatchersInterface.test_mismatch_details ________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e90a670>

    def test_mismatch_details(self):
        # The mismatch object must provide get_details, which must return a
        # dictionary mapping names to Content objects.
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:38: AttributeError
_________________________________________________________________ TestMatchersInterface.test_matches_match _________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e8fa580>

    def test_matches_match(self):
>       matcher = self.matches_matcher
E       AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'

testtools/tests/matchers/helpers.py:11: AttributeError
____________________________________________________________________ TestMatchersInterface.test__str__ _____________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e8fae50>

    def test__str__(self):
        # [(expected, object to __str__)].
        from testtools.matchers._doctest import DocTestMatches
>       examples = self.str_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'

testtools/tests/matchers/helpers.py:24: AttributeError
______________________________________________________________ TestMatchersInterface.test_describe_difference ______________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e8fa970>

    def test_describe_difference(self):
        # [(expected, matchee, matcher), ...]
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:30: AttributeError
_______________________________________________________________ TestMatchersInterface.test_mismatch_details ________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2e8fa820>

    def test_mismatch_details(self):
        # The mismatch object must provide get_details, which must return a
        # dictionary mapping names to Content objects.
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:38: AttributeError
_________________________________________________________________ TestMatchersInterface.test_matches_match _________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea69730>

    def test_matches_match(self):
>       matcher = self.matches_matcher
E       AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'

testtools/tests/matchers/helpers.py:11: AttributeError
____________________________________________________________________ TestMatchersInterface.test__str__ _____________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea694f0>

    def test__str__(self):
        # [(expected, object to __str__)].
        from testtools.matchers._doctest import DocTestMatches
>       examples = self.str_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'

testtools/tests/matchers/helpers.py:24: AttributeError
______________________________________________________________ TestMatchersInterface.test_describe_difference ______________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea69a30>

    def test_describe_difference(self):
        # [(expected, matchee, matcher), ...]
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:30: AttributeError
_______________________________________________________________ TestMatchersInterface.test_mismatch_details ________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea696a0>

    def test_mismatch_details(self):
        # The mismatch object must provide get_details, which must return a
        # dictionary mapping names to Content objects.
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:38: AttributeError
_________________________________________________________________ TestMatchersInterface.test_matches_match _________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea9e460>

    def test_matches_match(self):
>       matcher = self.matches_matcher
E       AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'

testtools/tests/matchers/helpers.py:11: AttributeError
____________________________________________________________________ TestMatchersInterface.test__str__ _____________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea9e490>

    def test__str__(self):
        # [(expected, object to __str__)].
        from testtools.matchers._doctest import DocTestMatches
>       examples = self.str_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'

testtools/tests/matchers/helpers.py:24: AttributeError
______________________________________________________________ TestMatchersInterface.test_describe_difference ______________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea9e7f0>

    def test_describe_difference(self):
        # [(expected, matchee, matcher), ...]
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:30: AttributeError
_______________________________________________________________ TestMatchersInterface.test_mismatch_details ________________________________________________________________

self = <testtools.tests.matchers.helpers.TestMatchersInterface object at 0x7f5a2ea9e6a0>

    def test_mismatch_details(self):
        # The mismatch object must provide get_details, which must return a
        # dictionary mapping names to Content objects.
>       examples = self.describe_examples
E       AttributeError: 'TestMatchersInterface' object has no attribute 'describe_examples'

testtools/tests/matchers/helpers.py:38: AttributeError
============================================================================= warnings summary =============================================================================
testtools/distutilscmd.py:14
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/distutilscmd.py:14: PytestCollectionWarning: cannot collect test class 'TestCommand' because it has a __init__ constructor (from: testtools/tests/test_distutilscmd.py)
    class TestCommand(Command):

testtools/tests/test_monkey.py:11
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/tests/test_monkey.py:11: PytestCollectionWarning: cannot collect test class 'TestObj' because it has a __init__ constructor (from: testtools/tests/test_monkey.py)
    class TestObj:

../../../../../usr/lib64/python3.8/unittest/suite.py:92
  /usr/lib64/python3.8/unittest/suite.py:92: PytestCollectionWarning: cannot collect test class 'TestSuite' because it has a __init__ constructor (from: testtools/tests/test_run.py)
    class TestSuite(BaseTestSuite):

testtools/testresult/real.py:65
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/testresult/real.py:65: PytestCollectionWarning: cannot collect test class 'TestResult' because it has a __init__ constructor (from: testtools/tests/test_runtest.py)
    class TestResult(unittest.TestResult):

../../../../../usr/lib64/python3.8/unittest/case.py:26
  /usr/lib64/python3.8/unittest/case.py:26: PytestCollectionWarning: cannot collect test class 'SkipTest' because it has a __init__ constructor (from: testtools/tests/test_testcase.py)
    class SkipTest(Exception):

../../../../../usr/lib64/python3.8/unittest/suite.py:92
  /usr/lib64/python3.8/unittest/suite.py:92: PytestCollectionWarning: cannot collect test class 'TestSuite' because it has a __init__ constructor (from: testtools/tests/test_testresult.py)
    class TestSuite(BaseTestSuite):

testtools/testresult/real.py:1027
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/testresult/real.py:1027: PytestCollectionWarning: cannot collect test class 'TestControl' because it has a __init__ constructor (from: testtools/tests/test_testresult.py)
    class TestControl:

testtools/testresult/real.py:65
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/testresult/real.py:65: PytestCollectionWarning: cannot collect test class 'TestResult' because it has a __init__ constructor (from: testtools/tests/test_testresult.py)
    class TestResult(unittest.TestResult):

testtools/testresult/real.py:1857
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/testresult/real.py:1857: PytestCollectionWarning: cannot collect test class 'TestResultDecorator' because it has a __init__ constructor (from: testtools/tests/test_testresult.py)
    class TestResultDecorator:

testtools/testresult/real.py:1944
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/testresult/real.py:1944: PytestCollectionWarning: cannot collect test class 'TestByTestResult' because it has a __init__ constructor (from: testtools/tests/test_testresult.py)
    class TestByTestResult(TestResult):

testtools/testresult/real.py:1944
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/testresult/real.py:1944: PytestCollectionWarning: cannot collect test class 'TestByTestResult' because it has a __init__ constructor (from: testtools/tests/test_testsuite.py)
    class TestByTestResult(TestResult):

testtools/testresult/real.py:65
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/testresult/real.py:65: PytestCollectionWarning: cannot collect test class 'TestResult' because it has a __init__ constructor (from: testtools/tests/twistedsupport/test_runtest.py)
    class TestResult(unittest.TestResult):

testtools/tests/test_distutilscmd.py::TestCommandTest::test_test_module
testtools/tests/test_distutilscmd.py::TestCommandTest::test_test_suite
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/distutilscmd.py:32: DeprecationWarning: Distutils integration is deprecated and will be removed in the next major release. Refer to https://github.com/pypa/setuptools/issues/1684 for more information.
    warnings.warn(

testtools/tests/test_testcase.py::TestAssertions::test_assertRaisesRegexp
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/tests/test_testcase.py:392: DeprecationWarning: Please use assertRaisesRegex instead.
    self.assertRaisesRegexp(RuntimeError, r"M\w*e", self.raiseError,

testtools/tests/test_testcase.py::TestAssertions::test_assertRaisesRegexp_wrong_error_type
testtools/tests/test_testcase.py::TestAssertions::test_assertRaisesRegexp_wrong_message
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/testcase.py:1039: DeprecationWarning: Please use assertRaisesRegex instead.
    return self._callable_object(*self._args, **self._kwargs)

testtools/tests/test_testcase.py::TestSkipping::test_skip_causes_skipException
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/tests/test_testcase.py:1458: DeprecationWarning: Only valid in 1.8.1 and earlier. Use skipTest instead.
    lambda: self.skip("Skip this test"),

testtools/tests/test_testresult.py::TestTextTestResult::test_stopTestRun_shows_details
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/tests/test_testresult.py:1569: DeprecationWarning: Only valid in 1.8.1 and earlier. Use skipTest instead.
    self.skip("Disabled per bug 1188420")

testtools/tests/test_testresult.py::TestNonAsciiResults::test_non_ascii_failure_string
testtools/tests/test_testresult.py::TestNonAsciiResults::test_non_ascii_failure_string_via_exec
testtools/tests/test_testresult.py::TestNonAsciiResults::test_unicode_exception
testtools/tests/test_testresult.py::TestNonAsciiResultsWithUnittest::test_non_ascii_failure_string
testtools/tests/test_testresult.py::TestNonAsciiResultsWithUnittest::test_non_ascii_failure_string_via_exec
testtools/tests/test_testresult.py::TestNonAsciiResultsWithUnittest::test_unicode_exception
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/tests/test_testresult.py:2571: DeprecationWarning: Only valid in 1.8.1 and earlier. Use skipTest instead.
    self.skip("Could not find a sample text for encoding: %r" % encoding)

testtools/tests/twistedsupport/test_runtest.py::TestRunWithLogObservers::test_restores_observers
  /home/tkloczko/rpmbuild/BUILD/testtools-2.5.0/testtools/tests/twistedsupport/test_runtest.py:884: DeprecationWarning: run_with_log_observers is deprecated since 1.8.2.
    run_with_log_observers([], lambda: None)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] testtools/tests/test_testresult.py:1568: Disabled per bug 1188420
SKIPPED [2] testtools/tests/test_testresult.py:2576: Could not find a sample text for encoding: 'ascii'
SKIPPED [2] testtools/tests/test_testresult.py:2582: Could not find a sample text for encoding: 'ascii'
SKIPPED [2] testtools/tests/test_testresult.py:2625: Could not find a sample text for encoding: 'unicode_internal'
XFAIL testtools/tests/test_testresult.py::TestNonAsciiResults::test_control_characters_in_failure_string
  reason:
XFAIL testtools/tests/test_testresult.py::TestNonAsciiResultsWithUnittest::test_control_characters_in_failure_string
  reason:
FAILED testtools/tests/test_testcase.py::TestRunTwiceNondeterministic::test_runTwice
FAILED testtools/tests/test_testresult.py::TestControlContract::test_initially_not_shouldStop - AttributeError: 'TestControlContract' object has no attribute 'makeResult'
FAILED testtools/tests/test_testresult.py::TestControlContract::test_stop_sets_shouldStop - AttributeError: 'TestControlContract' object has no attribute 'makeResult'
FAILED testtools/tests/test_testresult.py::TestStreamResultContract::test_startTestRun - NotImplementedError: <bound method TestStreamResultContract._make_result of <tes...
FAILED testtools/tests/test_testresult.py::TestStreamResultContract::test_files - NotImplementedError: <bound method TestStreamResultContract._make_result of <testtools....
FAILED testtools/tests/test_testresult.py::TestStreamResultContract::test_test_status - NotImplementedError: <bound method TestStreamResultContract._make_result of <test...
FAILED testtools/tests/matchers/test_basic.py::TestMatchersInterface::test_matches_match - AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'
FAILED testtools/tests/matchers/test_basic.py::TestMatchersInterface::test__str__ - AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'
FAILED testtools/tests/matchers/test_basic.py::TestMatchersInterface::test_describe_difference - AttributeError: 'TestMatchersInterface' object has no attribute 'describ...
FAILED testtools/tests/matchers/test_basic.py::TestMatchersInterface::test_mismatch_details - AttributeError: 'TestMatchersInterface' object has no attribute 'describe_e...
FAILED testtools/tests/matchers/test_const.py::TestMatchersInterface::test_matches_match - AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'
FAILED testtools/tests/matchers/test_const.py::TestMatchersInterface::test__str__ - AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'
FAILED testtools/tests/matchers/test_const.py::TestMatchersInterface::test_describe_difference - AttributeError: 'TestMatchersInterface' object has no attribute 'describ...
FAILED testtools/tests/matchers/test_const.py::TestMatchersInterface::test_mismatch_details - AttributeError: 'TestMatchersInterface' object has no attribute 'describe_e...
FAILED testtools/tests/matchers/test_datastructures.py::TestMatchersInterface::test_matches_match - AttributeError: 'TestMatchersInterface' object has no attribute 'matc...
FAILED testtools/tests/matchers/test_datastructures.py::TestMatchersInterface::test__str__ - AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'
FAILED testtools/tests/matchers/test_datastructures.py::TestMatchersInterface::test_describe_difference - AttributeError: 'TestMatchersInterface' object has no attribute...
FAILED testtools/tests/matchers/test_datastructures.py::TestMatchersInterface::test_mismatch_details - AttributeError: 'TestMatchersInterface' object has no attribute 'd...
FAILED testtools/tests/matchers/test_dict.py::TestMatchersInterface::test_matches_match - AttributeError: 'TestMatchersInterface' object has no attribute 'matches_matcher'
FAILED testtools/tests/matchers/test_dict.py::TestMatchersInterface::test__str__ - AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'
FAILED testtools/tests/matchers/test_dict.py::TestMatchersInterface::test_describe_difference - AttributeError: 'TestMatchersInterface' object has no attribute 'describe...
FAILED testtools/tests/matchers/test_dict.py::TestMatchersInterface::test_mismatch_details - AttributeError: 'TestMatchersInterface' object has no attribute 'describe_ex...
FAILED testtools/tests/matchers/test_doctest.py::TestMatchersInterface::test_matches_match - AttributeError: 'TestMatchersInterface' object has no attribute 'matches_mat...
FAILED testtools/tests/matchers/test_doctest.py::TestMatchersInterface::test__str__ - AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'
FAILED testtools/tests/matchers/test_doctest.py::TestMatchersInterface::test_describe_difference - AttributeError: 'TestMatchersInterface' object has no attribute 'descr...
FAILED testtools/tests/matchers/test_doctest.py::TestMatchersInterface::test_mismatch_details - AttributeError: 'TestMatchersInterface' object has no attribute 'describe...
FAILED testtools/tests/matchers/test_exception.py::TestMatchersInterface::test_matches_match - AttributeError: 'TestMatchersInterface' object has no attribute 'matches_m...
FAILED testtools/tests/matchers/test_exception.py::TestMatchersInterface::test__str__ - AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'
FAILED testtools/tests/matchers/test_exception.py::TestMatchersInterface::test_describe_difference - AttributeError: 'TestMatchersInterface' object has no attribute 'des...
FAILED testtools/tests/matchers/test_exception.py::TestMatchersInterface::test_mismatch_details - AttributeError: 'TestMatchersInterface' object has no attribute 'descri...
FAILED testtools/tests/matchers/test_higherorder.py::TestMatchersInterface::test_matches_match - AttributeError: 'TestMatchersInterface' object has no attribute 'matches...
FAILED testtools/tests/matchers/test_higherorder.py::TestMatchersInterface::test__str__ - AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'
FAILED testtools/tests/matchers/test_higherorder.py::TestMatchersInterface::test_describe_difference - AttributeError: 'TestMatchersInterface' object has no attribute 'd...
FAILED testtools/tests/matchers/test_higherorder.py::TestMatchersInterface::test_mismatch_details - AttributeError: 'TestMatchersInterface' object has no attribute 'desc...
FAILED testtools/tests/matchers/test_warnings.py::TestMatchersInterface::test_matches_match - AttributeError: 'TestMatchersInterface' object has no attribute 'matches_ma...
FAILED testtools/tests/matchers/test_warnings.py::TestMatchersInterface::test__str__ - AttributeError: 'TestMatchersInterface' object has no attribute 'str_examples'
FAILED testtools/tests/matchers/test_warnings.py::TestMatchersInterface::test_describe_difference - AttributeError: 'TestMatchersInterface' object has no attribute 'desc...
FAILED testtools/tests/matchers/test_warnings.py::TestMatchersInterface::test_mismatch_details - AttributeError: 'TestMatchersInterface' object has no attribute 'describ...
==================================================== 38 failed, 1329 passed, 7 skipped, 2 xfailed, 26 warnings in 3.57s ====================================================

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions