mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Patch #734231: Update RiscOS support. In particular, correct
riscospath.extsep, and use os.extsep throughout.
This commit is contained in:
parent
5467d4c0e3
commit
a94568a753
27 changed files with 482 additions and 59 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue