A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/020937.html below:

[Python-Dev] test_largefile.py failing on Linux

[Python-Dev] test_largefile.py failing on LinuxGuido van Rossum guido@python.org
Mon, 11 Mar 2002 08:27:35 -0500
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/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4