summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_index.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-07 12:18:33 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-07 12:18:33 (GMT)
commit6de9e938a5f70128a77c589b3ec40936f6335c1c (patch)
treec92fde2ad98ab954b494c59b1554da17f3720ccd /Lib/test/test_index.py
parent1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07 (diff)
downloadcpython-6de9e938a5f70128a77c589b3ec40936f6335c1c.zip
cpython-6de9e938a5f70128a77c589b3ec40936f6335c1c.tar.gz
cpython-6de9e938a5f70128a77c589b3ec40936f6335c1c.tar.bz2
Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are
effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings.
Diffstat (limited to 'Lib/test/test_index.py')
-rw-r--r--Lib/test/test_index.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/test/test_index.py b/Lib/test/test_index.py
index 1a7bd01..84d83fb 100644
--- a/Lib/test/test_index.py
+++ b/Lib/test/test_index.py
@@ -279,16 +279,14 @@ class OverflowTestCase(unittest.TestCase):
def test_getitem(self):
self._getitem_helper(object)
- # Silence Py3k warning
- with test_support.check_warnings():
+ with test_support.check_py3k_warnings():
self._getslice_helper_deprecated(object)
def test_getitem_classic(self):
class Empty: pass
# XXX This test fails (see bug #7532)
#self._getitem_helper(Empty)
- # Silence Py3k warning
- with test_support.check_warnings():
+ with test_support.check_py3k_warnings():
self._getslice_helper_deprecated(Empty)
def test_sequence_repeat(self):
@@ -308,8 +306,7 @@ def test_main():
XRangeTestCase,
OverflowTestCase,
)
- # Silence Py3k warning
- with test_support.check_warnings():
+ with test_support.check_py3k_warnings():
test_support.run_unittest(
ClassicSeqDeprecatedTestCase,
NewSeqDeprecatedTestCase,