mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
SF patch #474590 -- RISC OS support
This commit is contained in:
parent
c6ac8a78f6
commit
e2ae77b8b8
33 changed files with 256 additions and 188 deletions
|
@ -25,9 +25,9 @@ def testimg(rgb_file, raw_file):
|
|||
os.unlink('@.rgb')
|
||||
|
||||
table = [
|
||||
('testrgb.uue', 'test.rgb'),
|
||||
('testimg.uue', 'test.rawimg'),
|
||||
('testimgr.uue', 'test.rawimg.rev'),
|
||||
('testrgb'+os.extsep+'uue', 'test'+os.extsep+'rgb'),
|
||||
('testimg'+os.extsep+'uue', 'test'+os.extsep+'rawimg'),
|
||||
('testimgr'+os.extsep+'uue', 'test'+os.extsep+'rawimg'+os.extsep+'rev'),
|
||||
]
|
||||
for source, target in table:
|
||||
source = findfile(source)
|
||||
|
@ -43,13 +43,13 @@ ttob = rgbimg.ttob(0)
|
|||
if ttob != 0:
|
||||
raise error, 'ttob should start out as zero'
|
||||
|
||||
testimg('test.rgb', 'test.rawimg')
|
||||
testimg('test'+os.extsep+'rgb', 'test'+os.extsep+'rawimg')
|
||||
|
||||
ttob = rgbimg.ttob(1)
|
||||
if ttob != 0:
|
||||
raise error, 'ttob should be zero'
|
||||
|
||||
testimg('test.rgb', 'test.rawimg.rev')
|
||||
testimg('test'+os.extsep+'rgb', 'test'+os.extsep+'rawimg'+os.extsep+'rev')
|
||||
|
||||
ttob = rgbimg.ttob(0)
|
||||
if ttob != 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue