blob: ec11bce25e29ae16339d02c6cb2524f9a6ef19cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
threading is always available in newer pythons
https://github.com/nvawda/bz2file/issues/7
--- a/test_bz2file.py
+++ b/test_bz2file.py
@@ -496,15 +496,6 @@ class BZ2FileTest(BaseTest):
for t in threads:
t.join()
- def testWithoutThreading(self):
- if not hasattr(support, "import_fresh_module"):
- return
- module = support.import_fresh_module("bz2file", blocked=("threading",))
- with module.BZ2File(self.filename, "wb") as f:
- f.write(b"abc")
- with module.BZ2File(self.filename, "rb") as f:
- self.assertEqual(f.read(), b"abc")
-
def testMixedIterationAndReads(self):
self.createTempFile()
linelen = len(self.TEXT_LINES[0])
|