diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-09-26 21:49:22 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-09-26 21:49:22 +0000 |
commit | 0fe9d27998c6507d345e7e8ab50cec0385ba628d (patch) | |
tree | d6d3e5eefad0e4c1965c2869a15be8ad41c26eea /Lib/test/test_builtin.py | |
parent | 83255120ada7a35d3f4942df07e190593e131070 (diff) | |
download | cpython-0fe9d27998c6507d345e7e8ab50cec0385ba628d.tar.gz |
#3946 fix PyObject_CheckBuffer on a memoryview object
reviewed by Antoine
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r-- | Lib/test/test_builtin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index f8d4ae0e44..7175b80c88 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -242,6 +242,7 @@ class BuiltinTest(unittest.TestCase): compile(source='pass', filename='?', mode='exec') compile(dont_inherit=0, filename='tmp', source='0', mode='eval') compile('pass', '?', dont_inherit=1, mode='exec') + compile(memoryview(b"text"), "name", "exec") self.assertRaises(TypeError, compile) self.assertRaises(ValueError, compile, 'print(42)\n', '<string>', 'badmode') self.assertRaises(ValueError, compile, 'print(42)\n', '<string>', 'single', 0xff) |