mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
#2355: py3k warning for buffer().
This commit is contained in:
parent
aef3e529e2
commit
80055f6295
3 changed files with 13 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue