diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-03-17 13:52:48 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-03-17 13:52:48 (GMT) |
| commit | d80b4bfd0b291d543c682d7dac0841de0192a238 (patch) | |
| tree | 3968f81c285078b86b95aedddc6246f4d901a542 /Lib/test/test_repr.py | |
| parent | 8b3f1ce5916c3ec5f426d45496b313d7be6ea3a1 (diff) | |
| download | cpython-d80b4bfd0b291d543c682d7dac0841de0192a238.zip cpython-d80b4bfd0b291d543c682d7dac0841de0192a238.tar.gz cpython-d80b4bfd0b291d543c682d7dac0841de0192a238.tar.bz2 | |
#7092: silence some more py3k warnings.
Diffstat (limited to 'Lib/test/test_repr.py')
| -rw-r--r-- | Lib/test/test_repr.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py index 494a7c3..26300d3 100644 --- a/Lib/test/test_repr.py +++ b/Lib/test/test_repr.py @@ -8,7 +8,7 @@ import os import shutil import unittest -from test.test_support import run_unittest +from test.test_support import run_unittest, check_py3k_warnings from repr import repr as r # Don't shadow builtin repr from repr import Repr @@ -174,7 +174,8 @@ class ReprTests(unittest.TestCase): def test_buffer(self): # XXX doesn't test buffers with no b_base or read-write buffers (see # bufferobject.c). The test is fairly incomplete too. Sigh. - x = buffer('foo') + with check_py3k_warnings(): + x = buffer('foo') self.assertTrue(repr(x).startswith('<read-only buffer for 0x')) def test_cell(self): |
