flying-circus / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

ZipFS unit tests broken on Python2.5 #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make sure you have a python2.5 somewhere in your $PATH
2. tox -e py25

What do you see instead?
======================================================================
ERROR: test_reads (fs.tests.test_zipfs.TestReadZipFS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/builds/svn/pyfilesystem-read-only-honestly/.tox/py25/lib/python2.5/site-packages/fs/tests/test_zipfs.py", line 54, in test_reads
    check_contents("a.txt", b("Hello, World!"))
  File "/home/builds/svn/pyfilesystem-read-only-honestly/.tox/py25/lib/python2.5/site-packages/fs/tests/test_zipfs.py", line 53, in check_contents
    self.assert_(read_contents(path)==expected)
  File "/home/builds/svn/pyfilesystem-read-only-honestly/.tox/py25/lib/python2.5/site-packages/fs/tests/test_zipfs.py", line 50, in read_contents
    contents = f.read()
AttributeError: 'closing' object has no attribute 'read'

======================================================================
ERROR: test_binary_write_read (fs.tests.zipfs_binary_test.ZipFsBinaryWriteRead)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/builds/svn/pyfilesystem-read-only-honestly/.tox/py25/lib/python2.5/site-packages/fs/tests/zipfs_binary_test.py", line 39, in test_binary_write_read
    content = f.read()
AttributeError: 'closing' object has no attribute 'read'

Please use labels and text to provide additional information.
Python2.5.6 built from source, running on Ubuntu11.10

Original issue reported on code.google.com by gc...@loowis.durge.org on 13 Aug 2012 at 11:33

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r805.

Original comment by gc...@loowis.durge.org on 13 Aug 2012 at 11:35