summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_augassign.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_augassign.py')
-rw-r--r--Lib/test/test_augassign.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_augassign.py b/Lib/test/test_augassign.py
index a5b7cc4..51db28b 100644
--- a/Lib/test/test_augassign.py
+++ b/Lib/test/test_augassign.py
@@ -2,6 +2,7 @@
from test.test_support import run_unittest
import unittest
+import warnings
class AugAssignTest(unittest.TestCase):
@@ -324,7 +325,11 @@ __ilshift__ called
'''.splitlines())
def test_main():
- run_unittest(AugAssignTest)
+ with warnings.catch_warnings():
+ # Silence Py3k warning
+ warnings.filterwarnings("ignore", "classic int division",
+ DeprecationWarning)
+ run_unittest(AugAssignTest)
if __name__ == '__main__':
test_main()