summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-26 21:49:22 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-09-26 21:49:22 (GMT)
commit60320cb3e4fa0d77ae5f8634d83de497bba003f6 (patch)
treeab3e84cb632dae602140ad8392170c7392930699 /Lib/test/test_builtin.py
parent8a1b689e85a367c1a5f0bcbdcc7cd28e3f20d162 (diff)
downloadcpython-60320cb3e4fa0d77ae5f8634d83de497bba003f6.zip
cpython-60320cb3e4fa0d77ae5f8634d83de497bba003f6.tar.gz
cpython-60320cb3e4fa0d77ae5f8634d83de497bba003f6.tar.bz2
#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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index f8d4ae0..7175b80 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)