diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-01-08 19:04:16 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-01-08 19:04:16 (GMT) |
commit | ce8e33a095030e7af94f58f9da196b240bdf0476 (patch) | |
tree | b0ba50cbb6e85c6be6f6e6a870e4232be50a0f9c /Lib/test/test_repr.py | |
parent | 3ddc435af6873c6304058d7bcbcb19ee4fba7781 (diff) | |
download | cpython-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_repr.py')
-rw-r--r-- | Lib/test/test_repr.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py index ef07075..494a7c3 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, check_warnings +from test.test_support import run_unittest from repr import repr as r # Don't shadow builtin repr from repr import Repr @@ -174,9 +174,7 @@ 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. - # Silence the Py3k warning - with check_warnings(): - x = buffer('foo') + x = buffer('foo') self.assertTrue(repr(x).startswith('<read-only buffer for 0x')) def test_cell(self): |