[issue9868] test_locale leaves locale changed
Hirokazu Yamamoto
report at bugs.python.org
Thu Sep 16 05:21:09 CEST 2010
New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:
I noticed test_locale leaves locale changed.
# test_boo is simple test just to print windows error.
E:\python-dev\py3k\Lib\test>py3k -m test.regrtest test_locale test_boo
[1/2] test_locale
[2/2] test_boo
test test_boo failed -- Traceback (most recent call last):
File "e:\python-dev\py3k\lib\test\test_boo.py", line 11, in test
os.rmdir(TMPDIR)
WindowsError: [Error 2] ?w’e?3?e???t?@?C???a?c?A?c?e?U?1?n?B: 'e:\\python-dev\\
py3k\\lib\\test\\__boo__'
Traceback (most recent call last):
File "e:\python-dev\py3k\lib\test\regrtest.py", line 941, in runtest_inner
indirect_test()
File "e:\python-dev\py3k\lib\test\test_boo.py", line 14, in test_main
support.run_unittest(TestCase)
File "e:\python-dev\py3k\lib\test\support.py", line 1128, in run_unittest
_run_suite(suite)
File "e:\python-dev\py3k\lib\test\support.py", line 1111, in _run_suite
raise TestFailed(err)
test.support.TestFailed: Traceback (most recent call last):
File "e:\python-dev\py3k\lib\test\test_boo.py", line 11, in test
os.rmdir(TMPDIR)
WindowsError: [Error 2] ?w’e?3?e???t?@?C???a?c?A?c?e?U?1?n?B: 'e:\\python-dev\\
py3k\\lib\\test\\__boo__'
test.support.TestFailed: Traceback (most recent call last):
File "e:\python-dev\py3k\lib\test\test_boo.py", line 11, in test
os.rmdir(TMPDIR)
WindowsError: [Error 2] ?w’e?3?e???t?@?C???a?c?A?c?e?U?1?n?B: 'e:\\python-dev\\
py3k\\lib\\test\\__boo__'
During handling of the above exception, another exception occurred:
test test_boo failed -- Traceback (most recent call last):
File "e:\python-dev\py3k\lib\test\test_boo.py", line 11, in test
os.rmdir(TMPDIR)
WindowsError: [Error 2] ?w’e?3?e???t?@?C???a?c?A?c?e?U?1?n?B: 'e:\\python-dev\\
py3k\\lib\\test\\__boo__'
test.support.TestFailed: Traceback (most recent call last):
File "e:\python-dev\py3k\lib\test\test_boo.py", line 11, in test
os.rmdir(TMPDIR)
WindowsError: [Error 2] ?w’e?3?e???t?@?C???a?c?A?c?e?U?1?n?B: 'e:\\python-dev\\
py3k\\lib\\test\\__boo__'
During handling of the above exception, another exception occurred:
Exception IOError: 'raw write() returned invalid length 253 (should have been be
tween 0 and 252)' in <_io.TextIOWrapper name='<stdout>' encoding='cp932'> ignore
d
test.support.TestFailed: Traceback (most recent call last):
File "e:\python-dev\py3k\lib\test\test_boo.py", line 11, in test
os.rmdir(TMPDIR)
WindowsError: [Error 2] ?w’e?3?e???t?@?C???a?c?A?c?e?U?1?n?B: 'e:\\python-dev\\
py3k\\lib\\test\\__boo__'
During handling of the above exception, another exception occurred:
Exception IOError: 'raw write() returned invalid length 253 (should have been be
tween 0 and 252)' in <_io.TextIOWrapper name='<stdout>' encoding='cp932'> ignore
d
[79459 refs]
/////////////////////////////////////////////////
// test_boo.py
from test import support
import unittest
import os
TMPDIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "__notexist__")
class TestCase(unittest.TestCase):
def test(self):
os.rmdir(TMPDIR)
def test_main():
support.run_unittest(TestCase)
if __name__ == '__main__':
test_main()
----------
components: Tests
messages: 116506
nosy: ocean-city
priority: normal
severity: normal
status: open
title: test_locale leaves locale changed
versions: Python 3.1, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9868>
_______________________________________
More information about the Python-bugs-list
mailing list