Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r69840:f53ea2f776fe
Date: 2014-03-10 14:48 -0400
http://bitbucket.org/pypy/pypy/changeset/f53ea2f776fe/

Log:    more test_zipfile cleanups

diff --git a/lib-python/2.7/test/test_zipfile.py 
b/lib-python/2.7/test/test_zipfile.py
--- a/lib-python/2.7/test/test_zipfile.py
+++ b/lib-python/2.7/test/test_zipfile.py
@@ -779,8 +779,6 @@
             rmtree(TESTFN2)
 
     def test_write_non_pyfile(self):
-        if os.path.exists(TESTFN):
-            os.remove(TESTFN)
         with zipfile.PyZipFile(TemporaryFile(), "w") as zipfp:
             with open(TESTFN, 'w') as fid:
                 fid.write('most definitely not a python file')
@@ -1377,6 +1375,8 @@
                 zipf.read('ones')
                 with zipf.open('ones') as zopen1:
                     pass
+        with open(os.devnull) as f:
+            self.assertLess(f.fileno(), 100)
 
     def tearDown(self):
         unlink(TESTFN2)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to