This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test.test_import.PathsTests.test_UNC_path is failing
Type: Stage: resolved
Components: Windows Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, python-dev, vinay.sajip
Priority: normal Keywords: buildbot

Created on 2012-04-20 20:41 by brett.cannon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg158885 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2012-04-20 20:41
See http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/104/steps/test/logs/stdio for the failure, but basically:

======================================================================
ERROR: test_UNC_path (test.test_import.PathsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\Buildslave\3.x.moore-windows\build\lib\test\test_import.py", line 469, in _test_UNC_path
    mod = __import__("test_trailing_slash")
  File "<frozen importlib._bootstrap>", line 1003, in _find_and_load
ImportError: No module named 'test_trailing_slash'

----------------------------------------------------------------------


It seems spontaneous as the test succeeded previously and the commit it failed on didn't even touch code compiled by Windows.
msg158929 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2012-04-21 22:48
I think that the line just before the __import__ call:

sys.path.append(path)

should say

sys.path.append(unc)

With this change, test_import passes for me (on the pythonv branch).
msg158933 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-04-21 23:12
New changeset 0356103cde28 by Brett Cannon in branch 'default':
Issue #14637: Fix the UNC import test under Windows to actually use
http://hg.python.org/cpython/rev/0356103cde28
msg158935 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2012-04-21 23:15
Thanks for catching that, Vinay! Just waiting for the buildbots to verify my fix (which also included invalidating the cache which is why it was sporadic plus cleaning up sys.path properly).
msg158940 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2012-04-22 01:05
Thanks for catching that, Vinay! Buildbots say it worked.
History
Date User Action Args
2022-04-11 14:57:29adminsetgithub: 58842
2012-04-22 01:05:47brett.cannonsetstatus: open -> closed
resolution: fixed
messages: + msg158940

stage: needs patch -> resolved
2012-04-21 23:15:38brett.cannonsetmessages: + msg158935
2012-04-21 23:12:07python-devsetnosy: + python-dev
messages: + msg158933
2012-04-21 22:48:01vinay.sajipsetnosy: + vinay.sajip
messages: + msg158929
2012-04-20 20:41:31brett.cannoncreate