diff options
author | Georg Brandl <georg@python.org> | 2008-03-25 07:56:27 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-25 07:56:27 (GMT) |
commit | 80055f6295dd48274ae68d13806c7ee3c5b5882f (patch) | |
tree | f3f85b8ad80c573bc28b38c666603d61031c47d3 /Lib | |
parent | aef3e529e2c2fc12a91bb126d39b039ab7e402f9 (diff) | |
download | cpython-80055f6295dd48274ae68d13806c7ee3c5b5882f.zip cpython-80055f6295dd48274ae68d13806c7ee3c5b5882f.tar.gz cpython-80055f6295dd48274ae68d13806c7ee3c5b5882f.tar.bz2 |
#2355: py3k warning for buffer().
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_py3kwarn.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 07bcdf9..41ad25b 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -118,6 +118,11 @@ class TestPy3KWarnings(unittest.TestCase): with catch_warning() as w: self.assertWarning(set(), w, expected) + def test_buffer(self): + expected = 'buffer will be removed in 3.x' + with catch_warning() as w: + self.assertWarning(buffer('a'), w, expected) + def test_main(): run_unittest(TestPy3KWarnings) |