Author: Armin Rigo <ar...@tunes.org>
Branch: cpyext-avoid-roundtrip
Changeset: r93439:f1b821c8b0a9
Date: 2017-12-16 09:17 +0100
http://bitbucket.org/pypy/pypy/changeset/f1b821c8b0a9/

Log:    Add a passing test

diff --git a/pypy/module/cpyext/test/test_tupleobject.py 
b/pypy/module/cpyext/test/test_tupleobject.py
--- a/pypy/module/cpyext/test/test_tupleobject.py
+++ b/pypy/module/cpyext/test/test_tupleobject.py
@@ -267,3 +267,12 @@
             raises(SystemError, module.set_after_use, s)
         else:
             module.set_after_use(s)
+
+    def test_badinternalcall_from_c(self):
+        module = self.import_extension('foo', [
+            ("badinternalcall", "METH_O",
+             """
+                return PyTuple_New(-1);
+             """),
+            ])
+        raises(SystemError, module.badinternalcall, None)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to