diff options
author | Barry Warsaw <barry@python.org> | 2001-03-23 18:04:02 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-03-23 18:04:02 (GMT) |
commit | 559f6680c27f346c89e6dd29ba3235f7719ea6a7 (patch) | |
tree | 86ce37700c137270db43f31c6f7253d60d5a5cdd /Lib/test/test_support.py | |
parent | 66e8e86cf8a2f48a4aca1b05cef7fa7f6dd3ca48 (diff) | |
download | cpython-559f6680c27f346c89e6dd29ba3235f7719ea6a7.zip cpython-559f6680c27f346c89e6dd29ba3235f7719ea6a7.tar.gz cpython-559f6680c27f346c89e6dd29ba3235f7719ea6a7.tar.bz2 |
In Jython, `@' is not allowed in module names. Extend the TESTFN test
to use "$test" when in Jython. Closes SF patch #403668.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index aa8eaa6..943ba8a 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -57,10 +57,14 @@ def fcmp(x, y): # fuzzy comparison function return cmp(x, y) import os -if os.name !='riscos': - TESTFN = '@test' # Filename used for testing +# Filename used for testing +if os.name == 'java': + # Jython disallows @ in module names + TESTFN = '$test' +elif os.name != 'riscos': + TESTFN = '@test' else: - TESTFN = 'test' # Filename used for testing + TESTFN = 'test' del os from os import unlink |