summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-03-05 15:13:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-03-05 15:13:47 (GMT)
commit73d538b9c6d2f262a7d615248c84e509ebd64731 (patch)
tree777d023ce5bb75fa1831d4815533fd085a62b0b7 /Lib/test/test_support.py
parent620c0837bd4bcc7253cf402c553a50f64e5b9619 (diff)
downloadcpython-73d538b9c6d2f262a7d615248c84e509ebd64731.zip
cpython-73d538b9c6d2f262a7d615248c84e509ebd64731.tar.gz
cpython-73d538b9c6d2f262a7d615248c84e509ebd64731.tar.bz2
Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,
and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 8ac3851..776341d 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -109,8 +109,7 @@ elif os.name != 'riscos':
TESTFN_UNICODE="@test-\xe0\xf2"
else:
TESTFN_UNICODE=unicode("@test-\xe0\xf2", "latin-1") # 2 latin characters.
- if os.name=="nt":
- TESTFN_ENCODING="mbcs"
+ TESTFN_ENCODING=sys.getfilesystemencoding()
else:
TESTFN = 'test'