diff options
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) |