summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gzip.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-02-03 05:37:26 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-02-03 05:37:26 (GMT)
commitdde5b94875460e704099593766f4a5bc3279483d (patch)
treed0c369148bd2d2f723896839aada008ef931ff19 /Lib/test/test_gzip.py
parent17ae2ba78f96d661bdd1d8e2e8f96016c4aa4a60 (diff)
downloadcpython-dde5b94875460e704099593766f4a5bc3279483d.zip
cpython-dde5b94875460e704099593766f4a5bc3279483d.tar.gz
cpython-dde5b94875460e704099593766f4a5bc3279483d.tar.bz2
#7092: Silence more py3k warnings. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/test/test_gzip.py')
-rw-r--r--Lib/test/test_gzip.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py
index b690134..87131d0 100644
--- a/Lib/test/test_gzip.py
+++ b/Lib/test/test_gzip.py
@@ -246,11 +246,11 @@ class TestGzip(unittest.TestCase):
self.fail("__enter__ on a closed file didn't raise an exception")
try:
with gzip.GzipFile(self.filename, "wb") as f:
- 1/0
+ 1 // 0
except ZeroDivisionError:
pass
else:
- self.fail("1/0 didn't raise an exception")
+ self.fail("1 // 0 didn't raise an exception")
def test_zero_padded_file(self):
with gzip.GzipFile(self.filename, "wb") as f: