summaryrefslogtreecommitdiff
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
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 8ac385134a..776341dfcc 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'