[New-bugs-announce] [issue45403] test_sys: test_stdlib_dir() fails when Python is built outside the source tree

STINNER Victor report at bugs.python.org
Thu Oct 7 07:25:38 EDT 2021


New submission from STINNER Victor <vstinner at python.org>:

Reproduce the issue:
---
# go to Python source tree
mkdir build
cd build
../configure
make
./python -m test test_sys
---

Output:

======================================================================
FAIL: test_stdlib_dir (test.test_sys.SysModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vstinner/python/main/Lib/test/test_sys.py", line 1005, in test_stdlib_dir
    self.assertEqual(actual, expected)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '/home/vstinner/python/main/build/../Lib' != '/home/vstinner/python/main/Lib'
- /home/vstinner/python/main/build/../Lib
?                            ---------
+ /home/vstinner/python/main/Lib


Attached PR fix the issue.

----------
components: Tests
messages: 403389
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_sys: test_stdlib_dir() fails when Python is built outside the source tree
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45403>
_______________________________________


More information about the New-bugs-announce mailing list