Bug 2019393 - python-genshi fails to build with Python 3.11: AttributeError: 'StreamTestCase' object has no attribute 'assertEquals'
Summary: python-genshi fails to build with Python 3.11: AttributeError: 'StreamTestCa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-genshi
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Felix Schwarz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F36FTBFS PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2021-11-02 13:31 UTC by Tomáš Hrnčiar
Modified: 2022-02-07 20:45 UTC (History)
4 users (show)

Fixed In Version: python-genshi-0.7.5-8.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-07 20:39:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github edgewall genshi issues 43 0 None open Genshi doesn't work on Python 3.11: code() argument 15 must be bytes, not tuple 2021-11-03 16:55:19 UTC

Description Tomáš Hrnčiar 2021-11-02 13:31:10 UTC
python-genshi fails to build with Python 3.11.0a1.

======================================================================
ERROR: test_pickle (genshi.tests.core.StreamTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 58, in test_pickle
    self.assertEquals('<li>Foo</li>', xml.render(encoding=None))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StreamTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_Markup_escape_None_noquotes (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 92, in test_Markup_escape_None_noquotes
    self.assertEquals('', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_add_markup (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 102, in test_add_markup
    self.assertEquals('<b>foo</b><br/>', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_add_reverse (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 107, in test_add_reverse
    self.assertEquals('&lt;br/&gt;<b>bar</b>', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_add_str (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 97, in test_add_str
    self.assertEquals('<b>foo</b>&lt;br/&gt;', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_escape (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 76, in test_escape
    self.assertEquals('&lt;b&gt;&#34;&amp;&#34;&lt;/b&gt;', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_escape_noquotes (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 81, in test_escape_noquotes
    self.assertEquals('&lt;b&gt;"&amp;"&lt;/b&gt;', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_join (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 142, in test_join
    self.assertEquals('foo<br />&lt;bar /&gt;<br /><baz />', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_join_over_iter (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 147, in test_join_over_iter
    self.assertEquals('foo<br />&lt;bar /&gt;<br /><baz />', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_mod (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 112, in test_mod
    self.assertEquals('<b>&amp;</b>', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_mod_mapping (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 122, in test_mod_mapping
    self.assertEquals('<b>&amp;</b>', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_mod_multi (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 117, in test_mod_multi
    self.assertEquals('<b>&amp;</b> boo', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_mod_noescape (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 127, in test_mod_noescape
    self.assertEquals('<b>&amp;</b>', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_mul (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 132, in test_mul
    self.assertEquals('<b>foo</b><b>foo</b>', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_mul_reverse (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 137, in test_mul_reverse
    self.assertEquals('<b>foo</b><b>foo</b>', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_new_with_encoding (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 66, in test_new_with_encoding
    self.assertEquals("<Markup %r>" % u'D\u00f6ner', repr(markup))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_pickle (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 175, in test_pickle
    self.assertEquals("<Markup %s>" % expected_foo, repr(pickle.load(buf)))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_repr (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 71, in test_repr
    self.assertEquals("<Markup %s>" % expected_foo, repr(markup))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stripentities_all (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 152, in test_stripentities_all
    self.assertEquals('& j', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stripentities_keepxml (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 157, in test_stripentities_keepxml
    self.assertEquals('&amp; j', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_striptags_empty (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 162, in test_striptags_empty
    self.assertEquals('', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_striptags_mid (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 167, in test_striptags_mid
    self.assertEquals('foo', markup)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_unescape_markup (genshi.tests.core.MarkupTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 87, in test_unescape_markup
    self.assertEquals(string, unescape(markup))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MarkupTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_pickle (genshi.tests.core.NamespaceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 214, in test_pickle
    self.assertEquals("Namespace('http://www.example.org/namespace')",
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NamespaceTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_pickle (genshi.tests.core.AttrsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 186, in test_pickle
    self.assertEquals("Attrs([('attr1', 'foo'), ('attr2', 'bar')])",
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AttrsTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_leading_curly_brace (genshi.tests.core.QNameTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 247, in test_leading_curly_brace
    self.assertEquals('http://www.example.org/namespace', qname.namespace)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'QNameTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_pickle (genshi.tests.core.QNameTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/core.py", line 227, in test_pickle
    self.assertEquals('{http://www.example.org/namespace}elem', unpickled)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'QNameTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_checkbox_multi_value_auto (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 154, in test_fill_input_checkbox_multi_value_auto
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_checkbox_multi_value_defined (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 165, in test_fill_input_checkbox_multi_value_defined
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_checkbox_single_value_auto (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 132, in test_fill_input_checkbox_single_value_auto
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_checkbox_single_value_auto_no_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 124, in test_fill_input_checkbox_single_value_auto_no_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_checkbox_single_value_defined (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 143, in test_fill_input_checkbox_single_value_defined
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_hidden_multi_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 70, in test_fill_input_hidden_multi_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_hidden_no_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 54, in test_fill_input_hidden_no_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_hidden_single_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 62, in test_fill_input_hidden_single_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_password_disabled (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 354, in test_fill_input_password_disabled
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_password_enabled (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 362, in test_fill_input_password_enabled
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_radio_empty_string (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 206, in test_fill_input_radio_empty_string
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_radio_multi_empty_string (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 214, in test_fill_input_radio_multi_empty_string
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_radio_multi_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 195, in test_fill_input_radio_multi_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_radio_no_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 176, in test_fill_input_radio_no_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_radio_single_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 184, in test_fill_input_radio_single_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_text_multi_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 46, in test_fill_input_text_multi_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_text_no_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 30, in test_fill_input_text_no_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_input_text_single_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 38, in test_fill_input_text_single_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_option_segmented_text (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 320, in test_fill_option_segmented_text
    self.assertEquals(u"""<form>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_option_segmented_text_no_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 332, in test_fill_option_segmented_text_no_value
    self.assertEquals("""<form>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_option_unicode_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 344, in test_fill_option_unicode_value
    self.assertEquals(u"""<form>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_select_multi_value_auto (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 290, in test_fill_select_multi_value_auto
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_select_multi_value_defined (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 306, in test_fill_select_multi_value_defined
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_select_no_value_auto (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 226, in test_fill_select_no_value_auto
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_select_no_value_defined (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 242, in test_fill_select_no_value_defined
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_select_single_value_auto (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 258, in test_fill_select_single_value_auto
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_select_single_value_defined (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 274, in test_fill_select_single_value_defined
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_textarea_multi_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 94, in test_fill_textarea_multi_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_textarea_multiple (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 105, in test_fill_textarea_multiple
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_textarea_no_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 78, in test_fill_textarea_no_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_textarea_preserve_original (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 115, in test_fill_textarea_preserve_original
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_fill_textarea_single_value (genshi.filters.tests.test_html.HTMLFormFillerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 86, in test_fill_textarea_single_value
    self.assertEquals("""<form><p>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLFormFillerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_close_empty_tag (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 413, in test_sanitize_close_empty_tag
    self.assertEquals('<a href="#">fo<br/>o</a>',
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_entityref_text (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 403, in test_sanitize_entityref_text
    self.assertEquals(u'<a href="#">foö</a>',
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_escape_attr (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 408, in test_sanitize_escape_attr
    self.assertEquals('<div title="&lt;foo&gt;"/>',
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_escape_text (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 395, in test_sanitize_escape_text
    self.assertEquals('<a href="#">fo&amp;</a>',
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_invalid_entity (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 418, in test_sanitize_invalid_entity
    self.assertEquals('&amp;junk;', (html | HTMLSanitizer()).render())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_remove_comments (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 443, in test_sanitize_remove_comments
    self.assertEquals('<div/>', (html | HTMLSanitizer()).render())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_remove_input_password (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 439, in test_sanitize_remove_input_password
    self.assertEquals('<form/>', (html | HTMLSanitizer()).render())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_remove_onclick_attr (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 435, in test_sanitize_remove_onclick_attr
    self.assertEquals('<div/>', (html | HTMLSanitizer()).render())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_remove_script_elem (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 422, in test_sanitize_remove_script_elem
    self.assertEquals('', (html | HTMLSanitizer()).render())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_remove_src_javascript (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 497, in test_sanitize_remove_src_javascript
    self.assertEquals('<img/>', (html | HTMLSanitizer()).render())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_remove_style_phishing (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 482, in test_sanitize_remove_style_phishing
    self.assertEquals('<div style="top:0"/>', (html | sanitizer).render())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_remove_style_scripts (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 449, in test_sanitize_remove_style_scripts
    self.assertEquals('<div/>', (html | sanitizer).render())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_sanitize_unchanged (genshi.filters.tests.test_html.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/filters/tests/test_html.py", line 387, in test_sanitize_unchanged
    self.assertEquals('<a href="#">fo<br/>o</a>',
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HTMLSanitizerTestCase' object has no attribute 'assertEquals'

======================================================================
ERROR: test_simple_strategy_support (genshi.tests.path.PathTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/tests/path.py", line 659, in test_simple_strategy_support
    self.assert_(self._test_support(SimplePathStrategy, 'a/b'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'PathTestCase' object has no attribute 'assert_'

======================================================================
ERROR: test_pickle (genshi.template.tests.eval.ExpressionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/template/tests/eval.py", line 45, in test_pickle
    unpickled = pickle.load(buf)
                ^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/template/eval.py", line 92, in __setstate__
    self.code = CodeType(0, *state['code'])
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: code expected at least 18 arguments, got 16

======================================================================
ERROR: test_delattr (genshi.template.tests.eval.SuiteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/template/tests/eval.py", line 899, in test_delattr
    self.failIf(hasattr(obj, 'attr'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SuiteTestCase' object has no attribute 'failIf'

======================================================================
ERROR: test_delitem (genshi.template.tests.eval.SuiteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/template/tests/eval.py", line 904, in test_delitem
    self.failIf('k' in d, repr(d))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SuiteTestCase' object has no attribute 'failIf'

======================================================================
ERROR: test_pickle (genshi.template.tests.eval.SuiteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/template/tests/eval.py", line 551, in test_pickle
    unpickled = pickle.load(buf)
                ^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/template/eval.py", line 92, in __setstate__
    self.code = CodeType(0, *state['code'])
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: code expected at least 18 arguments, got 16

======================================================================
ERROR: test_pickle (genshi.template.tests.markup.MarkupTemplateTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/template/tests/markup.py", line 51, in test_pickle
    unpickled = pickle.load(buf)
                ^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/Genshi-0.7.5/genshi/template/eval.py", line 92, in __setstate__
    self.code = CodeType(0, *state['code'])
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: code expected at least 18 arguments, got 16

----------------------------------------------------------------------
Ran 886 tests in 0.598s

FAILED (errors=78)
Test failed: <unittest.runner.TextTestResult run=886 errors=78 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=886 errors=78 failures=0>

Removed many old deprecated unittest features:
    TestCase method aliases failUnlessEqual, failIfEqual, failUnless, failIf,
    failUnlessRaises, failUnlessAlmostEqual, failIfAlmostEqual (deprecated in
    Python 3.1), assertEquals, assertNotEquals, assert_, assertAlmostEquals,
    assertNotAlmostEquals, assertRegexpMatches, assertRaisesRegexp (deprecated in
    Python 3.2), and assertNotRegexpMatches (deprecated in Python 3.5).

https://bugs.python.org/issue45162
https://docs.python.org/3.11/whatsnew/3.11.html


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02910050-python-genshi/

For all our attempts to build python-genshi with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-genshi/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Felix Schwarz 2021-11-03 16:55:20 UTC
Thank you for reporting this. Victor Stinner filed a related bug report upstream: https://github.com/edgewall/genshi/issues/43

Comment 2 Felix Schwarz 2022-01-11 08:29:31 UTC
This was fixed upstream, I hope we can cut a new release "soon"(tm).

Comment 3 Tomáš Hrnčiar 2022-02-07 15:09:26 UTC
I've opened PR to backport upstream's patch. Let's have it in distgit so I don't have to build it from local srpm. 

https://src.fedoraproject.org/rpms/python-genshi/pull-request/3

Comment 4 Fedora Update System 2022-02-07 20:42:35 UTC
FEDORA-2022-e31cd1e3e6 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-e31cd1e3e6

Comment 5 Fedora Update System 2022-02-07 20:45:05 UTC
FEDORA-2022-e31cd1e3e6 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.