From: Barry Warsaw Date: Fri, 23 Mar 2001 18:04:02 +0000 (+0000) Subject: In Jython, `@' is not allowed in module names. Extend the TESTFN test X-Git-Tag: v2.1b2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=559f6680c27f346c89e6dd29ba3235f7719ea6a7;p=thirdparty%2FPython%2Fcpython.git In Jython, `@' is not allowed in module names. Extend the TESTFN test to use "$test" when in Jython. Closes SF patch #403668. --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index aa8eaa62fdda..943ba8aedd6b 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