Author: Ronan Lamy <[email protected]>
Branch: multiphase
Changeset: r92278:48e754e6916d
Date: 2017-08-30 03:50 +0100
http://bitbucket.org/pypy/pypy/changeset/48e754e6916d/
Log: check for stray exceptions at test teardown
diff --git a/pypy/module/cpyext/test/test_cpyext.py
b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -363,6 +363,8 @@
for name in self.imported_module_names:
self.unimport_module(name)
self.cleanup()
+ state = self.space.fromcache(State)
+ assert not state.operror
class AppTestCpythonExtension(AppTestCpythonExtensionBase):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit