[Python-Dev] test_largefile.py failing on Linux (original) (raw)
Guido van Rossum guido@python.org
Mon, 11 Mar 2002 08:27:35 -0500
- Previous message: [Python-Dev] Jython and bool
- Next message: [Python-Dev] test_largefile.py failing on Linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In the most recent checkout on Linux, test_largefile.py fails. The output is:
[guido@pcp742651pcs linux]$ ./python ../Lib/test/test_largefile.py
create large file via seek (may be sparse file) ...
check file size with os.fstat
2500000001L =?= 2500000001L ... yes
check file size with os.stat
2500000001L =?= 2500000001L ... yes
play around with seek() and read() with the built largefile
0L =?= 0 ... yes
'z' =?= 'z' ... yes
1L =?= 1 ... yes
0L =?= 0 ... yes
0L =?= 0 ... yes
42L =?= 42 ... yes
42L =?= 42 ... yes
84L =?= 84 ... yes
84L =?= 84 ... yes
2500000001L =?= 2500000001L ... yes
2499999991L =?= 2499999991L ... yes
0L =?= 0 ... yes
2500000000L =?= 2500000000L ... yes
'a' =?= 'a' ... yes
'z' =?= 'z' ... yes
1L =?= 1 ... yes
play around with os.lseek() with the built largefile
0L =?= 0 ... yes
42L =?= 42 ... yes
84L =?= 84 ... yes
84L =?= 84 ... yes
2500000001L =?= 2500000001L ... yes
2499999991L =?= 2499999991L ... yes
0L =?= 0 ... yes
2500000000L =?= 2500000000L ... yes
'a' =?= 'a' ... yes
try truncate
2500000001L =?= 2500000001L ... yes
2499999990L =?= 2499999990L ... yes
2499999990L =?= 2499999990L ... yes
0L =?= 2499999989L ... no
Traceback (most recent call last):
File "../Lib/test/test_largefile.py", line 149, in ?
expect(f.tell(), newsize)
File "../Lib/test/test_largefile.py", line 59, in expect
raise test_support.TestFailed, 'got %r, but expected %r' %
test_support.TestFailed: got 0L, but expected 2499999989L
[guido@pcp742651pcs linux]$
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Jython and bool
- Next message: [Python-Dev] test_largefile.py failing on Linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]