summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_coercion.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-01-08 19:04:16 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-01-08 19:04:16 (GMT)
commitce8e33a095030e7af94f58f9da196b240bdf0476 (patch)
treeb0ba50cbb6e85c6be6f6e6a870e4232be50a0f9c /Lib/test/test_coercion.py
parent3ddc435af6873c6304058d7bcbcb19ee4fba7781 (diff)
downloadcpython-ce8e33a095030e7af94f58f9da196b240bdf0476.zip
cpython-ce8e33a095030e7af94f58f9da196b240bdf0476.tar.gz
cpython-ce8e33a095030e7af94f58f9da196b240bdf0476.tar.bz2
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
Diffstat (limited to 'Lib/test/test_coercion.py')
-rw-r--r--Lib/test/test_coercion.py20
1 files changed, 7 insertions, 13 deletions
diff --git a/Lib/test/test_coercion.py b/Lib/test/test_coercion.py
index c6a1c17..67d19a6 100644
--- a/Lib/test/test_coercion.py
+++ b/Lib/test/test_coercion.py
@@ -223,11 +223,8 @@ def process_infix_results():
infix_results[key] = res
-with warnings.catch_warnings():
- # Silence Py3k warning
- warnings.filterwarnings("ignore", "classic int division",
- DeprecationWarning)
- process_infix_results()
+
+process_infix_results()
# now infix_results has two lists of results for every pairing.
prefix_binops = [ 'divmod' ]
@@ -340,14 +337,11 @@ class CoercionTest(unittest.TestCase):
raise exc
def test_main():
- with warnings.catch_warnings():
- # Silence Py3k warnings
- warnings.filterwarnings("ignore",
- "complex divmod.., // and % are deprecated",
- DeprecationWarning)
- warnings.filterwarnings("ignore", "classic .+ division",
- DeprecationWarning)
- run_unittest(CoercionTest)
+ warnings.filterwarnings("ignore",
+ r'complex divmod\(\), // and % are deprecated',
+ DeprecationWarning,
+ r'test.test_coercion$')
+ run_unittest(CoercionTest)
if __name__ == "__main__":
test_main()