[issue29592] abs_paths() in site.py is slow
Nick Coghlan
report at bugs.python.org
Sun Feb 19 06:22:53 EST 2017
Nick Coghlan added the comment:
CI failure indicating it isn't redundant, but could still potentially be made faster since non-absolute paths should be relatively rare now:
======================================================================
FAIL: test_s_option (test.test_site.HelperFunctionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/test/test_site.py", line 173, in test_s_option
self.assertIn(usersite, sys.path)
AssertionError: '/home/travis/.local/lib/python3.7/site-packages' not found in ['', '/usr/local/lib/python37.zip', '/home/travis/build/python/cpython/Lib', '/home/travis/build/python/cpython/build/lib.linux-x86_64-3.7-pydebug']
======================================================================
FAIL: test_abs_paths (test.test_site.ImportSideEffectTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/test/test_site.py", line 365, in test_abs_paths
.format(os__file__.decode('ascii')))
AssertionError: False is not true : expected absolute path, got ../../Lib/os.py
----------------------------------------------------------------------
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29592>
_______________________________________
More information about the Python-bugs-list
mailing list