diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-10 07:36:56 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-10 07:36:56 (GMT) |
commit | a94568a7535de60f1144e4eea0d027b87017a4b4 (patch) | |
tree | 5a8f696ca440a296b18521be17920b48f2021e4c /Lib/test/test_exceptions.py | |
parent | 5467d4c0e31e9db305a4899a44d7978f83e96649 (diff) | |
download | cpython-a94568a7535de60f1144e4eea0d027b87017a4b4.zip cpython-a94568a7535de60f1144e4eea0d027b87017a4b4.tar.gz cpython-a94568a7535de60f1144e4eea0d027b87017a4b4.tar.bz2 |
Patch #734231: Update RiscOS support. In particular, correct
riscospath.extsep, and use os.extsep throughout.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 24ae9e3..83e680f 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -3,7 +3,7 @@ from test.test_support import TestFailed, TESTFN, unlink from types import ClassType import warnings -import sys, traceback +import sys, traceback, os print '5. Built-in exceptions' # XXX This is not really enough, each *operation* should be tested! @@ -185,7 +185,7 @@ def test_capi1(): exc, err, tb = sys.exc_info() co = tb.tb_frame.f_code assert co.co_name == "test_capi1" - assert co.co_filename.endswith('test_exceptions.py') + assert co.co_filename.endswith('test_exceptions'+os.extsep+'py') else: print "Expected exception" @@ -197,7 +197,7 @@ def test_capi2(): exc, err, tb = sys.exc_info() co = tb.tb_frame.f_code assert co.co_name == "__init__" - assert co.co_filename.endswith('test_exceptions.py') + assert co.co_filename.endswith('test_exceptions'+os.extsep+'py') co2 = tb.tb_frame.f_back.f_code assert co2.co_name == "test_capi2" else: |