Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1979251 Details for
Bug 2226289
python-pydiffx: FTBFS in Fedora rawhide/f39
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh89 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
build.log
build.log (text/plain), 32.00 KB, created by
Fedora Release Engineering
on 2023-07-25 19:40:07 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Fedora Release Engineering
Created:
2023-07-25 19:40:07 UTC
Size:
32.00 KB
patch
obsolete
>rTests testMethod=test_write_meta_after_change_write_meta> > def test_write_meta_after_change_write_meta(self): > """Testing DiffXWriter.write_meta after new_change + write_meta""" > stream, writer = self._create_writer() > writer.new_change() > writer.write_meta({ > 'key': 'value', > }) > > message = ( > 'write_meta() cannot be called at this stage (after ' > 'write_meta()). Expected one of: new_change(), new_file()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:745: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_after_change_write_meta> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_meta() cannot be called at this stage (after write_meta()). Expected one of: new_change(), new_file()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >____________ DiffXWriterTests.test_write_meta_after_file_write_meta ____________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_after_file_write_meta> > def test_write_meta_after_file_write_meta(self): > """Testing DiffXWriter.write_meta after new_file + write_meta""" > stream, writer = self._create_writer() > writer.new_change() > writer.new_file() > writer.write_meta({ > 'key': 'value', > }) > > message = ( > 'write_meta() cannot be called at this stage (after ' > 'write_meta()). Expected one of: new_change(), new_file(), ' > 'write_diff()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:765: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_after_file_write_meta> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_meta() cannot be called at this stage (after write_meta()). Expected one of: new_change(), new_file(), write_diff()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >______________ DiffXWriterTests.test_write_meta_after_write_diff _______________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_after_write_diff> > def test_write_meta_after_write_diff(self): > """Testing DiffXWriter.write_meta after write_diff""" > stream, writer = self._create_writer() > writer.new_change() > writer.new_file() > writer.write_meta({ > 'key': 'value', > }) > writer.write_diff(b'...') > > message = ( > 'write_meta() cannot be called at this stage (after ' > 'write_diff()). Expected one of: new_change(), new_file()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:976: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_after_write_diff> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_meta() cannot be called at this stage (after write_diff()). Expected one of: new_change(), new_file()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >______________ DiffXWriterTests.test_write_meta_after_write_meta _______________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_after_write_meta> > def test_write_meta_after_write_meta(self): > """Testing DiffXWriter.write_meta after write_meta""" > stream, writer = self._create_writer() > writer.write_meta({ > 'key': 'value', > }) > > message = ( > 'write_meta() cannot be called at this stage (after ' > 'write_meta()). Expected new_change()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:727: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_after_write_meta> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_meta() cannot be called at this stage (after write_meta()). Expected new_change()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >____________ DiffXWriterTests.test_write_meta_with_empty_dictionary ____________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_with_empty_dictionary> > def test_write_meta_with_empty_dictionary(self): > """Testing DiffXWriter.write_meta with empty dict""" > stream, writer = self._create_writer() > > message = 'metadata cannot be empty' > >> with self.assertRaisesMessage(DiffXContentError, message): >pydiffx/tests/test_writer.py:712: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_with_empty_dictionary> >exception = <class 'pydiffx.errors.DiffXContentError'> >message = 'metadata cannot be empty' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >______________ DiffXWriterTests.test_write_meta_with_invalid_type ______________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_with_invalid_type> > def test_write_meta_with_invalid_type(self): > """Testing DiffXWriter.write_meta with non-dict""" > stream, writer = self._create_writer() > > message = "metadata must be a dictionary, not %s" % list > >> with self.assertRaisesMessage(DiffXContentError, message): >pydiffx/tests/test_writer.py:703: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_meta_with_invalid_type> >exception = <class 'pydiffx.errors.DiffXContentError'> >message = "metadata must be a dictionary, not <class 'list'>" > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >_________ DiffXWriterTests.test_write_preamble_after_change_write_meta _________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_change_write_meta> > def test_write_preamble_after_change_write_meta(self): > """Testing DiffXWriter.write_preamble after new_change + write_meta""" > stream, writer = self._create_writer() > writer.new_change() > writer.write_meta({ > 'key': 'value', > }) > > message = ( > 'write_preamble() cannot be called at this stage (after ' > 'write_meta()). Expected one of: new_change(), new_file()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:916: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_change_write_meta> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_preamble() cannot be called at this stage (after write_meta()). Expected one of: new_change(), new_file()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >_______ DiffXWriterTests.test_write_preamble_after_change_write_preamble _______ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_change_write_preamble> > def test_write_preamble_after_change_write_preamble(self): > """Testing DiffXWriter.write_preamble after new_change + write_preamble > """ > stream, writer = self._create_writer() > writer.new_change() > writer.write_preamble('text') > > message = ( > 'write_preamble() cannot be called at this stage (after ' > 'write_preamble()). Expected one of: new_file(), write_meta()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:944: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_change_write_preamble> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_preamble() cannot be called at this stage (after write_preamble()). Expected one of: new_file(), write_meta()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >__________ DiffXWriterTests.test_write_preamble_after_file_write_meta __________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_file_write_meta> > def test_write_preamble_after_file_write_meta(self): > """Testing DiffXWriter.write_preamble after new_file + write_meta""" > stream, writer = self._create_writer() > writer.new_change() > writer.new_file() > writer.write_meta({ > 'key': 'value', > }) > > message = ( > 'write_preamble() cannot be called at this stage (after ' > 'write_meta()). Expected one of: new_change(), new_file(), ' > 'write_diff()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:996: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_file_write_meta> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_preamble() cannot be called at this stage (after write_meta()). Expected one of: new_change(), new_file(), write_diff()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >__________ DiffXWriterTests.test_write_preamble_after_main_write_meta __________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_main_write_meta> > def test_write_preamble_after_main_write_meta(self): > """Testing DiffXWriter.write_preamble after write_meta""" > stream, writer = self._create_writer() > writer.write_meta({ > 'key': 'value', > }) > > message = ( > 'write_preamble() cannot be called at this stage (after ' > 'write_meta()). Expected new_change()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:900: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_main_write_meta> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_preamble() cannot be called at this stage (after write_meta()). Expected new_change()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >_____________ DiffXWriterTests.test_write_preamble_after_new_file ______________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_new_file> > def test_write_preamble_after_new_file(self): > """Testing DiffXWriter.write_preamble after new_file""" > stream, writer = self._create_writer() > writer.new_change() > writer.new_file() > > message = ( > 'write_preamble() cannot be called at this stage (after ' > 'new_file()). Expected write_meta()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:958: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_new_file> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_preamble() cannot be called at this stage (after new_file()). Expected write_meta()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >__________ DiffXWriterTests.test_write_preamble_after_write_preamble ___________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_write_preamble> > def test_write_preamble_after_write_preamble(self): > """Testing DiffXWriter.write_preamble after write_preamble""" > stream, writer = self._create_writer() > writer.write_preamble('text') > > message = ( > 'write_preamble() cannot be called at this stage (after ' > 'write_preamble()). Expected one of: new_change(), write_meta()' > ) > >> with self.assertRaisesMessage(DiffXSectionOrderError, message): >pydiffx/tests/test_writer.py:929: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_after_write_preamble> >exception = <class 'pydiffx.errors.DiffXSectionOrderError'> >message = 'write_preamble() cannot be called at this stage (after write_preamble()). Expected one of: new_change(), write_meta()' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >____________ DiffXWriterTests.test_write_preamble_with_byte_string _____________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_with_byte_string> > def test_write_preamble_with_byte_string(self): > """Testing DiffXWriter.write_preamble with a byte string""" > stream, writer = self._create_writer() > > message = 'text must be a Unicode string, not %s' % bytes > >> with self.assertRaisesMessage(DiffXContentError, message): >pydiffx/tests/test_writer.py:800: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_with_byte_string> >exception = <class 'pydiffx.errors.DiffXContentError'> >message = "text must be a Unicode string, not <class 'bytes'>" > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >_____________ DiffXWriterTests.test_write_preamble_with_empty_text _____________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_with_empty_text> > def test_write_preamble_with_empty_text(self): > """Testing DiffXWriter.write_preamble with empty text""" > stream, writer = self._create_writer() > > message = 'The text cannot be empty.' > >> with self.assertRaisesMessage(DiffXContentError, message): >pydiffx/tests/test_writer.py:809: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_with_empty_text> >exception = <class 'pydiffx.errors.DiffXContentError'> >message = 'The text cannot be empty.' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >________ DiffXWriterTests.test_write_preamble_with_line_endings_invalid ________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_with_line_endings_invalid> > def test_write_preamble_with_line_endings_invalid(self): > """Testing DiffXWriter.write_preamble with invalid line_endings= > value > """ > stream, writer = self._create_writer() > > message = ( > '"xxx" is not a supported value for line_endings. Expected one ' > 'of: dos, unix' > ) > >> with self.assertRaisesMessage(DiffXOptionValueChoiceError, message): >pydiffx/tests/test_writer.py:847: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_with_line_endings_invalid> >exception = <class 'pydiffx.errors.DiffXOptionValueChoiceError'> >message = '"xxx" is not a supported value for line_endings. Expected one of: dos, unix' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >__________ DiffXWriterTests.test_write_preamble_with_mimetype_invalid __________ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_with_mimetype_invalid> > def test_write_preamble_with_mimetype_invalid(self): > """Testing DiffXWriter.write_preamble with invalid mimetype= value""" > stream, writer = self._create_writer() > > message = ( > '"text/xxx" is not a supported value for mimetype. Expected one ' > 'of: text/markdown, text/plain' > ) > >> with self.assertRaisesMessage(DiffXOptionValueChoiceError, message): >pydiffx/tests/test_writer.py:885: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python3.12/contextlib.py:137: in __enter__ > return next(self.gen) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pydiffx.tests.test_writer.DiffXWriterTests testMethod=test_write_preamble_with_mimetype_invalid> >exception = <class 'pydiffx.errors.DiffXOptionValueChoiceError'> >message = '"text/xxx" is not a supported value for mimetype. Expected one of: text/markdown, text/plain' > @contextmanager > def assertRaisesMessage(self, exception, message): >> with self.assertRaisesRegexp(exception, re.escape(message)): >E AttributeError: 'DiffXWriterTests' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? >pydiffx/tests/testcases.py:68: AttributeError >=========================== short test summary info ============================ >FAILED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_init_with_invalid_options >FAILED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_init_with_invalid_options >FAILED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_content_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_encoding_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_init_with_invalid_options >FAILED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_line_endings_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_line_endings_with_invalid_value >FAILED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_type_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_type_with_invalid_value >FAILED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_content_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_encoding_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_format_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_format_with_invalid_value >FAILED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_init_with_invalid_options >FAILED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_content_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_encoding_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_indent_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_init_with_invalid_options >FAILED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_line_endings_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_line_endings_with_invalid_value >FAILED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_mimetype_with_invalid_type >FAILED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_mimetype_with_invalid_value >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_invalid_line_ending_option >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_missing_length_option >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_missing_newline >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_header_invalid_format >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_header_invalid_option_key_chars >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_header_invalid_option_value_chars >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_invalid_section_order >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_invalid_version >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_meta_deserialize_error >FAILED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_meta_invalid_format >FAILED pydiffx/tests/test_utils_text.py::GetNewlineForTypeTests::test_with_encoding_invalid >FAILED pydiffx/tests/test_utils_text.py::GetNewlineForTypeTests::test_with_invalid_line_endings >FAILED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_both >FAILED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_both_and_new_hunk >FAILED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_modified >FAILED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_modified_and_new_hunk >FAILED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_orig >FAILED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_orig_and_new_hunk >FAILED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_garbage_in_hunk >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_new_change_after_new_change >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_new_change_after_new_file >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_new_file_after_new_file >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_new_file_before_change >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_with_unsupported_version >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_after_write_diff >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_before_change >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_before_file >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_before_file_write_meta >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_with_diff_type_invalid >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_with_non_bytes >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_after_change_write_meta >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_after_file_write_meta >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_after_write_diff >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_after_write_meta >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_with_empty_dictionary >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_with_invalid_type >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_change_write_meta >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_change_write_preamble >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_file_write_meta >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_main_write_meta >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_new_file >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_write_preamble >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_byte_string >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_empty_text >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_line_endings_invalid >FAILED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_mimetype_invalid >======================== 68 failed, 108 passed in 2.11s ======================== >error: Bad exit status from /var/tmp/rpm-tmp.quHDRA (%check) >RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.quHDRA (%check) >Child return code was: 1 >EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 7495880da8734755ac20e60c0290f0c2 -D /var/lib/mock/f39-build-44340084-5276601/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.m0ft2gr7:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007" --setenv=PS1=<mock-chroot> \\s-\\v\\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-pydiffx.spec\n', 1)] >Traceback (most recent call last): > File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace > result = func(*args, **kw) > ^^^^^^^^^^^^^^^^^ > File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status > raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) >mockbuild.exception.Error: Command failed: > # /usr/bin/systemd-nspawn -q -M 7495880da8734755ac20e60c0290f0c2 -D /var/lib/mock/f39-build-44340084-5276601/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.m0ft2gr7:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-pydiffx.spec >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2226289
: 1979251 |
1979252
|
1979253