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
|
@ -78,7 +78,7 @@ os = imp.load_module("os", *x)
|
|||
|
||||
def test_module_with_large_stack(module):
|
||||
# create module w/list of 65000 elements to test bug #561858
|
||||
filename = module + '.py'
|
||||
filename = module + os.extsep + 'py'
|
||||
|
||||
# create a file with a list of 65000 elements
|
||||
f = open(filename, 'w+')
|
||||
|
@ -102,8 +102,8 @@ def test_module_with_large_stack(module):
|
|||
|
||||
# cleanup
|
||||
del sys.path[-1]
|
||||
for ext in '.pyc', '.pyo':
|
||||
fname = module + ext
|
||||
for ext in 'pyc', 'pyo':
|
||||
fname = module + os.extsep + ext
|
||||
if os.path.exists(fname):
|
||||
os.unlink(fname)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue