Bug ID 1222880
Summary [TRACK] Update python311 to 3.11.9
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Python
Assignee python-maintainers@suse.com
Reporter ana.guerrero@suse.com
QA Contact qa-bugs@suse.de
Target Milestone ---
Found By ---
Blocker ---

Hi,

The update of python311 to 3.11.9 (SR#1166678 for now), it's stuck for a few
python modules failing to build: 
python-Django, python-argcomplete, python-traitlets, virt-manager:test

* python-Django

[  453s] ======================================================================
[  453s] ERROR: test_send_unicode
(mail.tests.LocmemBackendTests.test_send_unicode)
[  453s] ----------------------------------------------------------------------
[  453s] Traceback (most recent call last):
[  453s]   File "/usr/lib64/python3.11/unittest/case.py", line 57, in
testPartExecutor
[  453s]     yield
[  453s]   File "/usr/lib64/python3.11/unittest/case.py", line 623, in run
[  453s]     self._callTestMethod(testMethod)
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File "/usr/lib64/python3.11/unittest/case.py", line 579, in
_callTestMethod
[  453s]     if method() is not None:
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/tests/mail/tests.py", line 1230, in
test_send_unicode
[  453s]     message = self.get_the_message()
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/tests/mail/tests.py", line 1208, in
get_the_message
[  453s]     % (len(mailbox), [m.as_string() for m in mailbox]),
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/tests/mail/tests.py", line 1208, in
<listcomp>
[  453s]     % (len(mailbox), [m.as_string() for m in mailbox]),
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/django/core/mail/message.py", line
135, in as_string
[  453s]     g.flatten(self, unixfrom=unixfrom, linesep=linesep)
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File "/usr/lib64/python3.11/email/generator.py", line 115, in
flatten
[  453s]     self._write(msg)
[  453s]   File "/usr/lib64/python3.11/email/generator.py", line 180, in _write
[  453s]     self._dispatch(msg)
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File "/usr/lib64/python3.11/email/generator.py", line 217, in
_dispatch
[  453s]     meth(msg)
[  453s]   File "/usr/lib64/python3.11/email/generator.py", line 246, in
_handle_text
[  453s]     msg.set_payload(msg._payload, charset)
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/django/core/mail/message.py", line
170, in set_payload
[  453s]     has_long_lines = any(
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/django/core/mail/message.py", line
171, in <genexpr>
[  453s]     len(line.encode()) > RFC5322_EMAIL_LINE_LENGTH_LIMIT
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s] UnicodeEncodeError: 'utf-8' codec can't encode characters in position
12-13: surrogates not allowed
[  453s] 
[  453s] ======================================================================
[  453s] ERROR: test_dont_base64_encode
(mail.tests.MailTests.test_dont_base64_encode)
[  453s] ----------------------------------------------------------------------
[  453s] Traceback (most recent call last):
[  453s]   File "/usr/lib64/python3.11/unittest/case.py", line 57, in
testPartExecutor
[  453s]     yield
[  453s]   File "/usr/lib64/python3.11/unittest/case.py", line 623, in run
[  453s]     self._callTestMethod(testMethod)
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File "/usr/lib64/python3.11/unittest/case.py", line 579, in
_callTestMethod
[  453s]     if method() is not None:
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/tests/mail/tests.py", line 902, in
test_dont_base64_encode
[  453s]     s = msg.message().as_string()
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/django/core/mail/message.py", line
135, in as_string
[  453s]     g.flatten(self, unixfrom=unixfrom, linesep=linesep)
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File "/usr/lib64/python3.11/email/generator.py", line 115, in
flatten
[  453s]     self._write(msg)
[  453s]   File "/usr/lib64/python3.11/email/generator.py", line 180, in _write
[  453s]     self._dispatch(msg)
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File "/usr/lib64/python3.11/email/generator.py", line 217, in
_dispatch
[  453s]     meth(msg)
[  453s]   File "/usr/lib64/python3.11/email/generator.py", line 246, in
_handle_text
[  453s]     msg.set_payload(msg._payload, charset)
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/django/core/mail/message.py", line
170, in set_payload
[  453s]     has_long_lines = any(
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s]   File
"/home/abuild/rpmbuild/BUILD/Django-4.2.11/django/core/mail/message.py", line
171, in <genexpr>
[  453s]     len(line.encode()) > RFC5322_EMAIL_LINE_LENGTH_LIMIT
[  453s]     ^^^^^^^^^^^^^^^^^
[  453s] UnicodeEncodeError: 'utf-8' codec can't encode characters in position
28-33: surrogates not allowed
[  453s] 
[  453s] ----------------------------------------------------------------------
[  453s] Ran 15735 tests in 115.286s
[  453s] 
[  453s] FAILED (errors=2, skipped=1096, expected failures=5)


* python-argcomplete

FAILED (failures=13, errors=1, skipped=12, expected failures=5)

...
[  356s] FAIL: test_choices (__main__.TestArgcomplete.test_choices)
[  356s] FAIL: test_completers (__main__.TestArgcomplete.test_completers)
[  356s] FAIL: test_default_completer
(__main__.TestArgcomplete.test_default_completer)
[  356s] FAIL: test_escape_special_chars
(__main__.TestArgcomplete.test_escape_special_chars)
[  356s] FAIL: test_exclusive (__main__.TestArgcomplete.test_exclusive)
[  356s] FAIL: test_exclusive_class
(__main__.TestArgcomplete.test_exclusive_class)
[  356s] FAIL: test_filescompleter_filetype_integration
(__main__.TestArgcomplete.test_filescompleter_filetype_integration)
[  356s] FAIL: test_mixed_optional_positional
(__main__.TestArgcomplete.test_mixed_optional_positional)
[  356s] FAIL: test_non_ascii (__main__.TestArgcomplete.test_non_ascii)
[  356s] FAIL: test_optional_nargs
(__main__.TestArgcomplete.test_optional_nargs)
[  356s] FAIL: test_positional_remainder
(__main__.TestArgcomplete.test_positional_remainder)
[  356s] FAIL: test_subparser_completers
(__main__.TestArgcomplete.test_subparser_completers)
[  356s] FAIL: test_subparsers (__main__.TestArgcomplete.test_subparsers)

[  356s] ERROR: test_repl_parse_after_complete
(__main__.TestArgcompleteREPL.test_repl_parse_after_complete)


* python-traitlets

[   16s] =================================== FAILURES
===================================
[   16s] _______________ TestArgcomplete.test_complete_custom_completers
________________
[   16s] 
[   16s] self = <tests.config.test_argcomplete.TestArgcomplete object at
0x7f9dfc039490>
[   16s] argcomplete_on = None
[   16s] 
[   16s]     def test_complete_custom_completers(self, argcomplete_on):
[   16s]         app = ArgcompleteApp()
[   16s]         # test pre-defined completers for Bool/Enum
[   16s] >       assert set(self.run_completer(app, "app
--Application.log_level=")) > {"DEBUG", "INFO"}
[   16s] E       AssertionError: assert {''} > {'DEBUG', 'INFO'}
[   16s] E        +  where {''} = set([''])
[   16s] E        +    where [''] = <bound method TestArgcomplete.run_completer
of <tests.config.test_argcomplete.TestArgcomplete object at
0x7f9dfc039490>>(<tests.config.test_argcomplete.ArgcompleteApp object at
0x7f9dfc17db50>, 'app --Application.log_level=')
[   16s] E        +      where <bound method TestArgcomplete.run_completer of
<tests.config.test_argcomplete.TestArgcomplete object at 0x7f9dfc039490>> =
<tests.config.test_argcomplete.TestArgcomplete object at
0x7f9dfc039490>.run_completer
[   16s] 
[   16s] app        = <tests.config.test_argcomplete.ArgcompleteApp object at
0x7f9dfc17db50>
[   16s] argcomplete_on = None
[   16s] self       = <tests.config.test_argcomplete.TestArgcomplete object at
0x7f9dfc039490>
[   16s] 
[   16s] tests/config/test_argcomplete.py:157: AssertionError
[   16s] =============================== warnings summary
===============================
[   16s] tests/_warnings.py::tests._warnings.all_warnings
[   16s]   <doctest tests._warnings.all_warnings[1]>:2: RuntimeWarning: bar
[   16s] 
[   16s] -- Docs:
https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[   16s] ============================= slowest 10 durations
=============================
[   16s] 0.19s call    
tests/config/test_application.py::test_show_config_json_cli
[   16s] 0.19s call     tests/config/test_application.py::test_show_config_cli
[   16s] 0.18s call     tests/config/test_application.py::test_help_all_output
[   16s] 0.18s call     tests/config/test_application.py::test_help_output
[   16s] 0.01s call    
tests/config/test_argcomplete.py::TestArgcomplete::test_complete_subcommands
[   16s] 0.01s call    
tests/test_traitlets.py::TestTraitType::test_deprecated_metadata_access
[   16s] 0.01s call    
tests/test_traitlets.py::TestTraitType::test_deprecated_method_warnings
[   16s] 
[   16s] (3 durations < 0.005s hidden.  Use -vv to show these durations.)
[   16s] =========================== short test summary info
============================
[   16s] SKIPPED [1]
../../../../../usr/lib/python3.11/site-packages/_pytest/doctest.py:456: all
tests skipped by +SKIP option
[   16s] FAILED
tests/config/test_argcomplete.py::TestArgcomplete::test_complete_custom_completers
[   16s] ============= 1 failed, 567 passed, 1 skipped, 1 warning in 1.57s
==============


* virt-manager:test

[   34s] =========================== short test summary info
============================
[   34s] FAILED tests/test_cli.py::testCLI0432virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0433virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0434virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0435virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0436virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0437virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0438virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0439virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0440virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0442virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0443virt_install - AssertionError:
Command w...
[   34s] FAILED tests/test_cli.py::testCLI0445virt_xml - AssertionError:
Command was: ...
[   34s] ================ 12 failed, 511 passed, 25 deselected in 15.67s
================


You are receiving this mail because: