summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-10 07:36:56 +0000
committerMartin v. Löwis <martin@v.loewis.de>2003-05-10 07:36:56 +0000
commit9669cebac002cf0f8ff8cd0a3b82418592a08965 (patch)
tree1d64f4c6340287dea2e5e5c30152bbc401091311 /Lib/test/test_exceptions.py
parentc805192fd22bf6de009203800f0c386efe416933 (diff)
downloadcpython-9669cebac002cf0f8ff8cd0a3b82418592a08965.tar.gz
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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 24ae9e307a..83e680f81a 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: