support pytest

Bug #2046453 reported by Tomasz Kloczko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subunit
Triaged
Wishlist
Unassigned

Bug Description

Looks like something is wrong because many units are failing with "Failed: NOTE: Incompatible Exception Representation, displaying natively:"

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-subunit-1.4.4-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-subunit-1.4.4-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/subunit-1.4.4
plugins: hypothesis-6.84.3, xdist-3.5.0, flaky-3.7.0
collected 363 items

python/subunit/tests/test_chunked.py ...................... [ 6%]
python/subunit/tests/test_details.py ......... [ 8%]
python/subunit/tests/test_filter_to_disk.py . [ 8%]
python/subunit/tests/test_filters.py ... [ 9%]
python/subunit/tests/test_output_filter.py FFFFFFFFF.......FFFFFFFFFFFFFFFFFF..... [ 20%]
python/subunit/tests/test_progress_model.py ............ [ 23%]
python/subunit/tests/test_run.py ...... [ 25%]
python/subunit/tests/test_subunit_filter.py .................... [ 30%]
python/subunit/tests/test_subunit_stats.py ... [ 31%]
python/subunit/tests/test_subunit_tags.py .. [ 32%]
python/subunit/tests/test_tap2subunit.py ..................... [ 38%]
python/subunit/tests/test_test_protocol.py ......................................................................................................................... [ 71%]
python/subunit/tests/test_test_protocol2.py FFF.............................................. [ 84%]
python/subunit/tests/test_test_results.py ....................................................... [100%]

========================================================================================= FAILURES ==========================================================================================
___________________________________________________________ TestStatusArgParserTests.test_all_commands_accept_file_name_argument ____________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 79, in test_all_commands_accept_file_name_argument
    args=[self.option, 'foo', '--attach-file', tmp_file.name, '--file-name', "foo"]
AttributeError: 'TestStatusArgParserTests' object has no attribute 'option'
____________________________________________________________ TestStatusArgParserTests.test_all_commands_accept_mimetype_argument ____________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 72, in test_all_commands_accept_mimetype_argument
    args=[self.option, 'foo', '--attach-file', tmp_file.name, '--mimetype', "text/plain"]
AttributeError: 'TestStatusArgParserTests' object has no attribute 'option'
______________________________________________________________ TestStatusArgParserTests.test_all_commands_accept_tags_argument ______________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 85, in test_all_commands_accept_tags_argument
    args=[self.option, 'foo', '--tag', "foo", "--tag", "bar", "--tag", "baz"]
AttributeError: 'TestStatusArgParserTests' object has no attribute 'option'
_____________________________________________________________ TestStatusArgParserTests.test_all_commands_parse_file_attachment ______________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 65, in test_all_commands_parse_file_attachment
    args=[self.option, 'foo', '--attach-file', tmp_file.name]
AttributeError: 'TestStatusArgParserTests' object has no attribute 'option'
_____________________________________________________________ TestStatusArgParserTests.test_attach_file_with_hyphen_opens_stdin _____________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 92, in test_attach_file_with_hyphen_opens_stdin
    args=[self.option, "foo", "--attach-file", "-"]
AttributeError: 'TestStatusArgParserTests' object has no attribute 'option'
_______________________________________________________ TestStatusArgParserTests.test_attach_file_with_hyphen_sets_filename_to_stdin ________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 99, in test_attach_file_with_hyphen_sets_filename_to_stdin
    args=[self.option, "foo", "--attach-file", "-"]
AttributeError: 'TestStatusArgParserTests' object has no attribute 'option'
_________________________________________________________________ TestStatusArgParserTests.test_can_override_stdin_filename _________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 106, in test_can_override_stdin_filename
    args=[self.option, "foo", "--attach-file", "-", '--file-name', 'foo']
AttributeError: 'TestStatusArgParserTests' object has no attribute 'option'
_____________________________________________________________ TestStatusArgParserTests.test_can_parse_all_commands_with_test_id _____________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 57, in test_can_parse_all_commands_with_test_id
    args = safe_parse_arguments(args=[self.option, test_id])
AttributeError: 'TestStatusArgParserTests' object has no attribute 'option'
______________________________________________________________________ TestStatusArgParserTests.test_requires_test_id _______________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 116, in test_requires_test_id
    raises(RuntimeError('argument %s: must specify a single TEST_ID.' % self.option))
AttributeError: 'TestStatusArgParserTests' object has no attribute 'option'
____________________________________________________________ StatusStreamResultTests.test_all_commands_generate_correct_test_id _____________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 238, in test_all_commands_generate_correct_test_id
    result = get_result_for([self.option, self.test_id])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
__________________________________________________________________ StatusStreamResultTests.test_all_commands_generate_tags __________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 223, in test_all_commands_generate_tags
    result = get_result_for([self.option, self.test_id, '--tag', 'hello', '--tag', 'world'])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
_______________________________________________________________ StatusStreamResultTests.test_all_commands_generate_timestamp ________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 230, in test_all_commands_generate_timestamp
    result = get_result_for([self.option, self.test_id])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
____________________________________________________________________ StatusStreamResultTests.test_can_read_binary_files _____________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 260, in test_can_read_binary_files
    result = get_result_for([self.option, self.test_id, '--attach-file', f.name])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
_____________________________________________________________________ StatusStreamResultTests.test_can_read_empty_files _____________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 273, in test_can_read_empty_files
    result = get_result_for([self.option, self.test_id, '--attach-file', f.name])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
________________________________________________________________________ StatusStreamResultTests.test_can_read_stdin ________________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 286, in test_can_read_stdin
    result = get_result_for([self.option, self.test_id, '--attach-file', '-'])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
_________________________________________________________________ StatusStreamResultTests.test_correct_status_is_generated __________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 215, in test_correct_status_is_generated
    result = get_result_for([self.option, self.test_id])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
__________________________________________________________________ StatusStreamResultTests.test_file_chunk_size_is_honored __________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 326, in test_file_chunk_size_is_honored
    result = get_result_for([self.option, self.test_id, '--attach-file', f.name])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
________________________________________________________________ StatusStreamResultTests.test_file_is_sent_in_single_packet _________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 247, in test_file_is_sent_in_single_packet
    result = get_result_for([self.option, self.test_id, '--attach-file', f.name])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
__________________________________________________________________ StatusStreamResultTests.test_file_is_sent_with_test_id ___________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 299, in test_file_is_sent_with_test_id
    result = get_result_for([self.option, self.test_id, '--attach-file', f.name])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
________________________________________________________________ StatusStreamResultTests.test_file_is_sent_with_test_status _________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 312, in test_file_is_sent_with_test_status
    result = get_result_for([self.option, self.test_id, '--attach-file', f.name])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
______________________________________________________________ StatusStreamResultTests.test_file_mimetype_specified_once_only _______________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 345, in test_file_mimetype_specified_once_only
    self.option,
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
_________________________________________________________________ StatusStreamResultTests.test_file_name_is_used_by_default _________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 457, in test_file_name_is_used_by_default
    result = get_result_for([self.option, self.test_id, '--attach-file', f.name])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
__________________________________________________________________ StatusStreamResultTests.test_filename_can_be_overridden __________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 439, in test_filename_can_be_overridden
    self.option,
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
_________________________________________________________________ StatusStreamResultTests.test_only_one_packet_is_generated _________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 208, in test_only_one_packet_is_generated
    result = get_result_for([self.option, self.test_id])
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
___________________________________________________________________ StatusStreamResultTests.test_tags_specified_once_only ___________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 367, in test_tags_specified_once_only
    self.option,
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
_______________________________________________________________ StatusStreamResultTests.test_test_status_specified_once_only ________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 411, in test_test_status_specified_once_only
    self.option,
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
________________________________________________________________ StatusStreamResultTests.test_timestamp_specified_once_only _________________________________________________________________
'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/subunit-1.4.4/python/subunit/tests/test_output_filter.py", line 391, in test_timestamp_specified_once_only
    self.option,
AttributeError: 'StatusStreamResultTests' object has no attribute 'option'
________________________________________________________________________ TestStreamResultContract.test_startTestRun _________________________________________________________________________

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

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

/usr/lib/python3.8/site-packages/testtools/tests/test_testresult.py:509:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

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

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

/usr/lib/python3.8/site-packages/testtools/tests/test_testresult.py:506: NotImplementedError
____________________________________________________________________________ TestStreamResultContract.test_files ____________________________________________________________________________

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

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

/usr/lib/python3.8/site-packages/testtools/tests/test_testresult.py:515:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

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

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

/usr/lib/python3.8/site-packages/testtools/tests/test_testresult.py:506: NotImplementedError
_________________________________________________________________________ TestStreamResultContract.test_test_status _________________________________________________________________________

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

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

/usr/lib/python3.8/site-packages/testtools/tests/test_testresult.py:533:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

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

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

/usr/lib/python3.8/site-packages/testtools/tests/test_testresult.py:506: NotImplementedError
===================================================================================== warnings summary ======================================================================================
python/subunit/test_results.py:32
  /home/tkloczko/rpmbuild/BUILD/subunit-1.4.4/python/subunit/test_results.py:32: PytestCollectionWarning: cannot collect test class 'TestResultDecorator' because it has a __init__ constructor (from: python/subunit/test_results.py)
    class TestResultDecorator:

python/subunit/test_results.py:436
  /home/tkloczko/rpmbuild/BUILD/subunit-1.4.4/python/subunit/test_results.py:436: PytestCollectionWarning: cannot collect test class 'TestResultFilter' because it has a __init__ constructor (from: python/subunit/test_results.py)
    class TestResultFilter(TestResultDecorator):

python/subunit/test_results.py:539
  /home/tkloczko/rpmbuild/BUILD/subunit-1.4.4/python/subunit/test_results.py:539: PytestCollectionWarning: cannot collect test class 'TestIdPrintingResult' because it has a __init__ constructor (from: python/subunit/test_results.py)
    class TestIdPrintingResult(testtools.TestResult):

python/subunit/test_results.py:634
  /home/tkloczko/rpmbuild/BUILD/subunit-1.4.4/python/subunit/test_results.py:634: PytestCollectionWarning: cannot collect test class 'TestByTestResult' because it has a __init__ constructor (from: python/subunit/test_results.py)
    class TestByTestResult(testtools.TestResult):

python/subunit/test_results.py:436
  /home/tkloczko/rpmbuild/BUILD/subunit-1.4.4/python/subunit/test_results.py:436: PytestCollectionWarning: cannot collect test class 'TestResultFilter' because it has a __init__ constructor (from: python/subunit/tests/test_subunit_filter.py)
    class TestResultFilter(TestResultDecorator):

../../../../../usr/lib/python3.8/site-packages/testtools/testresult/real.py:65
  /usr/lib/python3.8/site-packages/testtools/testresult/real.py:65: PytestCollectionWarning: cannot collect test class 'TestResult' because it has a __init__ constructor (from: python/subunit/tests/test_test_protocol.py)
    class TestResult(unittest.TestResult):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
FAILED python/subunit/tests/test_output_filter.py::TestStatusArgParserTests::test_all_commands_accept_file_name_argument - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::TestStatusArgParserTests::test_all_commands_accept_mimetype_argument - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::TestStatusArgParserTests::test_all_commands_accept_tags_argument - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::TestStatusArgParserTests::test_all_commands_parse_file_attachment - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::TestStatusArgParserTests::test_attach_file_with_hyphen_opens_stdin - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::TestStatusArgParserTests::test_attach_file_with_hyphen_sets_filename_to_stdin - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::TestStatusArgParserTests::test_can_override_stdin_filename - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::TestStatusArgParserTests::test_can_parse_all_commands_with_test_id - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::TestStatusArgParserTests::test_requires_test_id - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_all_commands_generate_correct_test_id - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_all_commands_generate_tags - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_all_commands_generate_timestamp - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_can_read_binary_files - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_can_read_empty_files - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_can_read_stdin - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_correct_status_is_generated - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_file_chunk_size_is_honored - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_file_is_sent_in_single_packet - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_file_is_sent_with_test_id - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_file_is_sent_with_test_status - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_file_mimetype_specified_once_only - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_file_name_is_used_by_default - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_filename_can_be_overridden - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_only_one_packet_is_generated - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_tags_specified_once_only - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_test_status_specified_once_only - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_output_filter.py::StatusStreamResultTests::test_timestamp_specified_once_only - Failed: NOTE: Incompatible Exception Representation, displaying natively:
FAILED python/subunit/tests/test_test_protocol2.py::TestStreamResultContract::test_startTestRun - NotImplementedError: <bound method TestStreamResultContract._make_result of <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f458c10cdc0>>
FAILED python/subunit/tests/test_test_protocol2.py::TestStreamResultContract::test_files - NotImplementedError: <bound method TestStreamResultContract._make_result of <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f458c10c4c0>>
FAILED python/subunit/tests/test_test_protocol2.py::TestStreamResultContract::test_test_status - NotImplementedError: <bound method TestStreamResultContract._make_result of <testtools.tests.test_testresult.TestStreamResultContract object at 0x7f458c10cfd0>>
======================================================================== 30 failed, 333 passed, 6 warnings in 3.02s =========================================================================

Jelmer Vernooij (jelmer)
Changed in subunit:
status: New → Triaged
importance: Undecided → Wishlist
summary: - 1.4.4: pytest fails in multiple units with message "Failed: NOTE:
- Incompatible Exception Representation, displaying natively"
+ support pytest
Revision history for this message
Marcel Telka (marcel-telka) wrote :

Since pytest testing fails, what is the proper way to run tests from sdist?

Thank you.

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.