summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_index.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-08-02 18:10:09 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-08-02 18:10:09 (GMT)
commitf613f352d05cafbec6c4524c67f3eed00a0c4857 (patch)
treefe0e22ba0c4a6de17a04580c26cf19c8cc136528 /Lib/test/test_index.py
parent800a354fa946d777b8df92e5b0bd07e92f6f9a3b (diff)
downloadcpython-f613f352d05cafbec6c4524c67f3eed00a0c4857.zip
cpython-f613f352d05cafbec6c4524c67f3eed00a0c4857.tar.gz
cpython-f613f352d05cafbec6c4524c67f3eed00a0c4857.tar.bz2
Merged revisions 78758 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78758 | florent.xicluna | 2010-03-07 14:18:33 +0200 (Sun, 07 Mar 2010) | 4 lines 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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_index.py b/Lib/test/test_index.py
index 75f2434..c985569 100644
--- a/Lib/test/test_index.py
+++ b/Lib/test/test_index.py
@@ -195,8 +195,9 @@ class OverflowTestCase(unittest.TestCase):
x = GetItem()
self.assertEqual(x[self.pos], self.pos)
self.assertEqual(x[self.neg], self.neg)
- self.assertEqual(x[self.neg:self.pos], (maxint+minsize, maxsize))
- self.assertEqual(x[self.neg:self.pos:1].indices(maxsize), (0, maxsize, 1))
+ with test_support._check_py3k_warnings():
+ self.assertEqual(x[self.neg:self.pos], (maxint+minsize, maxsize))
+ self.assertEqual(x[self.neg:self.pos:1].indices(maxsize), (0, maxsize, 1))
def test_getitem(self):
self._getitem_helper(object)