summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_file.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_file.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_file.py')
-rw-r--r--Lib/test/test_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py
index 7d3e72d..a91897e 100644
--- a/Lib/test/test_file.py
+++ b/Lib/test/test_file.py
@@ -127,7 +127,7 @@ class AutoFileTests(unittest.TestCase):
self.assertEquals(self.f.__exit__(None, None, None), None)
# it must also return None if an exception was given
try:
- 1/0
+ 1 // 0
except:
self.assertEquals(self.f.__exit__(*sys.exc_info()), None)