diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-04-02 08:30:21 +0000 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-04-02 08:30:21 +0000 |
commit | dfd3618422bc19ae48047e74c6320746ee6b610e (patch) | |
tree | 9312574057913b4b3291824e08f6244010972a9f /Lib/test/test_bz2.py | |
parent | a7f242fa2a005082b2067a558471178a2ed3fc93 (diff) | |
download | cpython-git-dfd3618422bc19ae48047e74c6320746ee6b610e.tar.gz |
#7092: silence some py3k warnings
Diffstat (limited to 'Lib/test/test_bz2.py')
-rw-r--r-- | Lib/test/test_bz2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index cbe47fd7b0..0541535a3c 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -301,11 +301,11 @@ class BZ2FileTest(BaseTest): self.fail("__enter__ on a closed file didn't raise an exception") try: with BZ2File(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 testThreading(self): # Using a BZ2File from several threads doesn't deadlock (issue #7205). |