From a94568a7535de60f1144e4eea0d027b87017a4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 10 May 2003 07:36:56 +0000 Subject: Patch #734231: Update RiscOS support. In particular, correct riscospath.extsep, and use os.extsep throughout. --- Lib/test/test_exceptions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/test/test_exceptions.py') 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: -- cgit v1.2.1