[pypy-svn] r37860 - pypy/dist/lib-python
cfbolz at codespeak.net
cfbolz at codespeak.net
Sat Feb 3 13:02:40 CET 2007
Author: cfbolz
Date: Sat Feb 3 13:02:39 2007
New Revision: 37860
Modified:
pypy/dist/lib-python/conftest.py
Log:
check for truth value using the space ("how did that ever work?")
Modified: pypy/dist/lib-python/conftest.py
==============================================================================
--- pypy/dist/lib-python/conftest.py (original)
+++ pypy/dist/lib-python/conftest.py Sat Feb 3 13:02:39 2007
@@ -273,8 +273,8 @@
filename = str(self.fspath)
callex(space, set_argv, space, space.wrap(filename))
#space.call_function(self.w_method)
- res = callex(space, run_testcase_method, space, self.w_method)
- if res:
+ w_res = callex(space, run_testcase_method, space, self.w_method)
+ if space.is_true(w_res):
raise AssertionError(
"testcase instance invociation raised errors, see stdoudt")
More information about the Pypy-commit
mailing list