Éric Araujo added the comment:
This fell out of my radar, sorry. 2.6 is in security mode now, so this won’t be
fixed.
I’m adding people listed in the “testing” interest area in Misc/maintainers.rst
in case someone has an answer to my question.
--
nosy: +giampaolo.rodola, michael.foor
Éric Araujo added the comment:
Thanks for the report. I have had exceptions in distutils2 tests because of
this exact same thing; my fix was to use “os.path.dirname(__file__) or
os.curdir”. I’ll change that if people more knowledgeable than me say your fix
is better :)
--
nosy: +merw
New submission from Hirokazu Yamamoto :
Hello. In OtherFileTests.testOpenDir(test_file), if we run this test
in Lib/test, __file__ becomes "test_file.py", so os.path.dirname(__file__)
becomes "". I think it is better to use os.path.abspath to get valid folder
path for test purpose.
# This test