Summary: | dev-python/pip-23.2.1 fails tests | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paolo Pedroni <paolo.pedroni> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | DuPol |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | pip-23.2.1:20230821-042614.log.gz |
Description
Paolo Pedroni
2023-08-21 07:58:46 UTC
=================================================================================================================== FAILURES ======= ============================================================================================================ ___________________________________________________________________________________________________________ test_broken_stdout_pipe ____________________________________________________________________________________________________________ [gw0] linux -- Python 3.11.4 /var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/bin/python3.11 deprecated_python = False def test_broken_stdout_pipe(deprecated_python: bool) -> None: """ Test a broken pipe to stdout. """ > stderr, returncode = setup_broken_stdout_test( ["pip", "list"], deprecated_python=deprecated_python, ) deprecated_python = False tests/functional/test_broken_stdout.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = ['pip', 'list'], deprecated_python = False def setup_broken_stdout_test( args: List[str], deprecated_python: bool ) -> Tuple[str, int]: proc = subprocess.Popen( args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) # Call close() on stdout to cause a broken pipe. assert proc.stdout is not None proc.stdout.close() returncode = proc.wait() assert proc.stderr is not None stderr = proc.stderr.read().decode("utf-8") expected_msg = "ERROR: Pipe to stdout was broken" if deprecated_python: assert expected_msg in stderr else: > assert stderr.startswith(expected_msg) E assert False E + where False = <built-in method startswith of str object at 0x55ddc18c0cf0>('ERROR: Pipe to stdout was broken') E + where <built-in method startswith of str object at 0x55ddc18c0cf0> = "DEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/cupshelpers-1.0-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..\nDEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/lensfun-0.3.4-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..\nERROR: Pipe to stdout was broken\nException ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>\nBrokenPipeError: [Errno 32] Broken pipe\n".startswith args = ['pip', 'list'] deprecated_python = False expected_msg = 'ERROR: Pipe to stdout was broken' proc = <Popen: returncode: 120 args: ['pip', 'list']> returncode = 120 stderr = ('DEPRECATION: Loading egg at ' '/usr/lib/python3.11/site-packages/cupshelpers-1.0-py3.11.egg is deprecated. ' 'pip 23.3 will enforce this behaviour change. A possible replacement is to ' 'use pip for package installation..\n' 'DEPRECATION: Loading egg at ' '/usr/lib/python3.11/site-packages/lensfun-0.3.4-py3.11.egg is deprecated. ' 'pip 23.3 will enforce this behaviour change. A possible replacement is to ' 'use pip for package installation..\n' 'ERROR: Pipe to stdout was broken\n' "Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' " "encoding='utf-8'>\n" 'BrokenPipeError: [Errno 32] Broken pipe\n') tests/functional/test_broken_stdout.py:28: AssertionError _____________________________________________________________________________________________________ test_broken_stdout_pipe__log_option ______________________________________________________________________________________________________ [gw0] linux -- Python 3.11.4 /var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/bin/python3.11 deprecated_python = False, tmpdir = PosixPath('/var/tmp/portage/dev-python/pip-23.2.1/temp/pytest-of-portage/pytest-0/popen-gw0/test_broken_stdout_pipe__log_o0') def test_broken_stdout_pipe__log_option(deprecated_python: bool, tmpdir: Path) -> None: """ Test a broken pipe to stdout when --log is passed. """ log_path = os.path.join(str(tmpdir), "log.txt") > stderr, returncode = setup_broken_stdout_test( ["pip", "--log", log_path, "list"], deprecated_python=deprecated_python, ) deprecated_python = False log_path = '/var/tmp/portage/dev-python/pip-23.2.1/temp/pytest-of-portage/pytest-0/popen-gw0/test_broken_stdout_pipe__log_o0/log.txt' tmpdir = PosixPath('/var/tmp/portage/dev-python/pip-23.2.1/temp/pytest-of-portage/pytest-0/popen-gw0/test_broken_stdout_pipe__log_o0') tests/functional/test_broken_stdout.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = ['pip', '--log', '/var/tmp/portage/dev-python/pip-23.2.1/temp/pytest-of-portage/pytest-0/popen-gw0/test_broken_stdout_pipe__log_o0/log.txt', 'list'], deprecated_python = False def setup_broken_stdout_test( args: List[str], deprecated_python: bool ) -> Tuple[str, int]: proc = subprocess.Popen( args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) # Call close() on stdout to cause a broken pipe. assert proc.stdout is not None proc.stdout.close() returncode = proc.wait() assert proc.stderr is not None stderr = proc.stderr.read().decode("utf-8") expected_msg = "ERROR: Pipe to stdout was broken" if deprecated_python: assert expected_msg in stderr else: > assert stderr.startswith(expected_msg) E assert False E + where False = <built-in method startswith of str object at 0x55ddc1959100>('ERROR: Pipe to stdout was broken') E + where <built-in method startswith of str object at 0x55ddc1959100> = "DEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/cupshelpers-1.0-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..\nDEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/lensfun-0.3.4-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..\nERROR: Pipe to stdout was broken\nException ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>\nBrokenPipeError: [Errno 32] Broken pipe\n".startswith args = ['pip', '--log', '/var/tmp/portage/dev-python/pip-23.2.1/temp/pytest-of-portage/pytest-0/popen-gw0/test_broken_stdout_pipe__log_o0/log.txt', 'list'] deprecated_python = False expected_msg = 'ERROR: Pipe to stdout was broken' proc = <Popen: returncode: 120 args: ['pip', '--log', '/var/tmp/portage/dev-python/...> returncode = 120 stderr = ('DEPRECATION: Loading egg at ' '/usr/lib/python3.11/site-packages/cupshelpers-1.0-py3.11.egg is deprecated. ' 'pip 23.3 will enforce this behaviour change. A possible replacement is to ' 'use pip for package installation..\n' 'DEPRECATION: Loading egg at ' '/usr/lib/python3.11/site-packages/lensfun-0.3.4-py3.11.egg is deprecated. ' 'pip 23.3 will enforce this behaviour change. A possible replacement is to ' 'use pip for package installation..\n' 'ERROR: Pipe to stdout was broken\n' "Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' " "encoding='utf-8'>\n" 'BrokenPipeError: [Errno 32] Broken pipe\n') tests/functional/test_broken_stdout.py:28: AssertionError _______________________________________________________________________________________________________ test_broken_stdout_pipe__verbose _______________________________________________________________________________________________________ [gw0] linux -- Python 3.11.4 /var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/bin/python3.11 deprecated_python = False def test_broken_stdout_pipe__verbose(deprecated_python: bool) -> None: """ Test a broken pipe to stdout with verbose logging enabled. """ > stderr, returncode = setup_broken_stdout_test( ["pip", "-vv", "list"], deprecated_python=deprecated_python, ) deprecated_python = False tests/functional/test_broken_stdout.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = ['pip', '-vv', 'list'], deprecated_python = False def setup_broken_stdout_test( args: List[str], deprecated_python: bool ) -> Tuple[str, int]: proc = subprocess.Popen( args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) # Call close() on stdout to cause a broken pipe. assert proc.stdout is not None proc.stdout.close() returncode = proc.wait() assert proc.stderr is not None stderr = proc.stderr.read().decode("utf-8") expected_msg = "ERROR: Pipe to stdout was broken" if deprecated_python: assert expected_msg in stderr else: > assert stderr.startswith(expected_msg) E assert False E + where False = <built-in method startswith of str object at 0x55ddc19580f0>('ERROR: Pipe to stdout was broken') E + where <built-in method startswith of str object at 0x55ddc19580f0> = 'DEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/cupshelpers-1.0-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..\nDEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/lensfun-0.3.4-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..\nERROR: Pipe to stdout was broken\nTraceback (most recent call last):\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/utils/logging.py", line 177, in emit\n self.console.print(renderable, overflow="ignore", crop=False, style=style)\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_vendor/rich/console.py", line 1672, in print\n with self:\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_vendor/rich/console.py", line 864, in __exit__\n self._exit_buffer()\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_vendor/rich/console.py", line 822, in _exit_buffer\n self._check_buffer()\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_vendor/rich/console.py", line 2065, in _check_buffer\n self.file.flush()\nBrokenPipeError: [Errno 32] Broken pipe\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper\n status = run_func(*args)\n ^^^^^^^^^^^^^^^\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/commands/list.py", line 195, in run\n self.output_package_listing(packages, options)\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/commands/list.py", line 277, in output_package_listing\n self.output_package_listing_columns(data, header)\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/commands/list.py", line 303, in output_package_listing_columns\n write_output(val)\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/utils/misc.py", line 340, in write_output\n logger.info(msg, *args)\n File "/usr/lib/python3.11/logging/__init__.py", line 1489, in info\n self._log(INFO, msg, args, **kwargs)\n File "/usr/lib/python3.11/logging/__init__.py", line 1634, in _log\n self.handle(record)\n File "/usr/lib/python3.11/logging/__init__.py", line 1644, in handle\n self.callHandlers(record)\n File "/usr/lib/python3.11/logging/__init__.py", line 1706, in callHandlers\n hdlr.handle(record)\n File "/usr/lib/python3.11/logging/__init__.py", line 978, in handle\n self.emit(record)\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/utils/logging.py", line 179, in emit\n self.handleError(record)\n File "/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/utils/logging.py", line 195, in handleError\n raise BrokenStdoutLoggingError()\npip._internal.utils.logging.BrokenStdoutLoggingError\nException ignored in: <_io.TextIOWrapper name=\'<stdout>\' mode=\'w\' encoding=\'utf-8\'>\nBrokenPipeError: [Errno 32] Broken pipe\n'.startswith args = ['pip', '-vv', 'list'] deprecated_python = False expected_msg = 'ERROR: Pipe to stdout was broken' proc = <Popen: returncode: 120 args: ['pip', '-vv', 'list']> returncode = 120 stderr = ('DEPRECATION: Loading egg at ' '/usr/lib/python3.11/site-packages/cupshelpers-1.0-py3.11.egg is deprecated. ' 'pip 23.3 will enforce this behaviour change. A possible replacement is to ' 'use pip for package installation..\n' 'DEPRECATION: Loading egg at ' '/usr/lib/python3.11/site-packages/lensfun-0.3.4-py3.11.egg is deprecated. ' 'pip 23.3 will enforce this behaviour change. A possible replacement is to ' 'use pip for package installation..\n' 'ERROR: Pipe to stdout was broken\n' 'Traceback (most recent call last):\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/utils/logging.py", ' 'line 177, in emit\n' ' self.console.print(renderable, overflow="ignore", crop=False, ' 'style=style)\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_vendor/rich/console.py", ' 'line 1672, in print\n' ' with self:\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_vendor/rich/console.py", ' 'line 864, in __exit__\n' ' self._exit_buffer()\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_vendor/rich/console.py", ' 'line 822, in _exit_buffer\n' ' self._check_buffer()\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_vendor/rich/console.py", ' 'line 2065, in _check_buffer\n' ' self.file.flush()\n' 'BrokenPipeError: [Errno 32] Broken pipe\n' '\n' 'During handling of the above exception, another exception occurred:\n' '\n' 'Traceback (most recent call last):\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", ' 'line 180, in exc_logging_wrapper\n' ' status = run_func(*args)\n' ' ^^^^^^^^^^^^^^^\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/commands/list.py", ' 'line 195, in run\n' ' self.output_package_listing(packages, options)\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/commands/list.py", ' 'line 277, in output_package_listing\n' ' self.output_package_listing_columns(data, header)\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/commands/list.py", ' 'line 303, in output_package_listing_columns\n' ' write_output(val)\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/utils/misc.py", ' 'line 340, in write_output\n' ' logger.info(msg, *args)\n' ' File "/usr/lib/python3.11/logging/__init__.py", line 1489, in info\n' ' self._log(INFO, msg, args, **kwargs)\n' ' File "/usr/lib/python3.11/logging/__init__.py", line 1634, in _log\n' ' self.handle(record)\n' ' File "/usr/lib/python3.11/logging/__init__.py", line 1644, in handle\n' ' self.callHandlers(record)\n' ' File "/usr/lib/python3.11/logging/__init__.py", line 1706, in ' 'callHandlers\n' ' hdlr.handle(record)\n' ' File "/usr/lib/python3.11/logging/__init__.py", line 978, in handle\n' ' self.emit(record)\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/utils/logging.py", ' 'line 179, in emit\n' ' self.handleError(record)\n' ' File ' '"/var/tmp/portage/dev-python/pip-23.2.1/work/pip-23.2.1-python3_11/install/usr/lib/python3.11/site-packages/pip/_internal/utils/logging.py", ' 'line 195, in handleError\n' ' raise BrokenStdoutLoggingError()\n' 'pip._internal.utils.logging.BrokenStdoutLoggingError\n' "Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' " "encoding='utf-8'>\n" 'BrokenPipeError: [Errno 32] Broken pipe\n') tests/functional/test_broken_stdout.py:28: AssertionError |