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.

Author ZackerySpytz
Recipients ZackerySpytz, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-06-24.23:51:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561420298.16.0.54765045768.issue37393@roundup.psfhosted.org>
In-reply-to
Content
C:\CPython\cpython>python.bat -Werror -m test test_ntpath
Running Debug|x64 interpreter...
Run tests sequentially
0:00:00 load avg: 0.00 [1/1] test_ntpath
test test_ntpath failed -- Traceback (most recent call last):
  File "C:\CPython\cpython\\lib\ntpath.py", line 518, in abspath
    return normpath(_getfullpathname(path))
OSError: [WinError 123] The filename, directory name, or volume label syntax is
incorrect: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\CPython\cpython\lib\test\test_ntpath.py", line 285, in test_abspath
    tester('ntpath.abspath("")', cwd_dir)
  File "C:\CPython\cpython\lib\test\test_ntpath.py", line 41, in tester
    gotResult = eval(fn)
  File "<string>", line 1, in <module>
  File "C:\CPython\cpython\\lib\ntpath.py", line 520, in abspath
    return _abspath_fallback(path)
  File "C:\CPython\cpython\\lib\ntpath.py", line 501, in _abspath_fallback
    cwd = os.getcwdb()
DeprecationWarning: The Windows bytes API has been deprecated, use Unicode filenames
instead

test_ntpath failed

== Tests result: FAILURE ==

1 test failed:
    test_ntpath

Total duration: 1 sec 297 ms
Tests result: FAILURE


It seems that eval() is called an extra time without a warning filter in the tester() function.
History
Date User Action Args
2019-06-24 23:51:38ZackerySpytzsetrecipients: + ZackerySpytz, paul.moore, tim.golden, zach.ware, steve.dower
2019-06-24 23:51:38ZackerySpytzsetmessageid: <1561420298.16.0.54765045768.issue37393@roundup.psfhosted.org>
2019-06-24 23:51:38ZackerySpytzlinkissue37393 messages
2019-06-24 23:51:37ZackerySpytzcreate