Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

unit test

  • Loading branch information...
commit 889ccef719514c2264bf31a01909233a05dc1c3e 1 parent 9e8c04d
Tomer Chachamu r3m0t authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/test_lzma.py
10 test/test_lzma.py
View
@@ -560,6 +560,16 @@ def test_seekable(self):
f.close()
self.assertRaises(ValueError, f.seekable)
+ with TempFile(TESTFN, COMPRESSED_XZ):
+ f = LZMAFile(TESTFN)
+ try:
+ self.assertTrue(f.seekable())
+ f.read()
+ self.assertTrue(f.seekable())
+ finally:
+ f.close()
+ self.assertRaises(ValueError, f.seekable)
+
f = LZMAFile(BytesIO(), "w")
try:
self.assertFalse(f.seekable())
Please sign in to comment.
Something went wrong with that request. Please try again.