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/2001-April/014210.html below:

[Python-Dev] 2.1c1: test_zipfile fails on FreeBSD

[Python-Dev] 2.1c1: test_zipfile fails on FreeBSDMark Favas m.favas@per.dem.csiro.au
Sat, 14 Apr 2001 08:59:34 +0800
FreeBSD 4.2-20010225-STABLE, gcc 2.95.2

./python Lib/test/test_zipfile.py
Traceback (most recent call last):
  File "Lib/test/test_zipfile.py", line 35, in ?
    zipTest(file, zipfile.ZIP_STORED, writtenData)
  File "Lib/test/test_zipfile.py", line 18, in zipTest
    zip.close()
  File "/home/mark/src/python/CVS/python/dist/src/Lib/zipfile.py", line
471, in close
    self.fp.flush()
IOError: [Errno 9] Bad file descriptor

Looks like FreeBSD objects to doing a flush() on a file opened for
reading. The self.fp.flush() call should probably be part of the
preceding if-block relating to files opened in "a" or "w' mode.
-- 
Mark Favas  -   m.favas@per.dem.csiro.au
CSIRO, Private Bag No 5, Wembley, Western Australia 6913, AUSTRALIA



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