[pypy-svn] r69165 - pypy/trunk/pypy/translator/cli/test
antocuni at codespeak.net
antocuni at codespeak.net
Wed Nov 11 14:27:19 CET 2009
Author: antocuni
Date: Wed Nov 11 14:27:19 2009
New Revision: 69165
Modified:
pypy/trunk/pypy/translator/cli/test/test_runtest.py
Log:
kill this failing tests, as debug_print is already tested in a better way in
test_standalone
Modified: pypy/trunk/pypy/translator/cli/test/test_runtest.py
==============================================================================
--- pypy/trunk/pypy/translator/cli/test/test_runtest.py (original)
+++ pypy/trunk/pypy/translator/cli/test/test_runtest.py Wed Nov 11 14:27:19 2009
@@ -21,24 +21,3 @@
return len(s)
res = self.interpret(fn, ["hello"])
assert res == 5
-
- def test_debug_print(self):
- from pypy.rlib.debug import debug_print
- def fn(s):
- debug_print('Hello world', 42)
- return s
- func = self._compile(fn, [42])
- stdout, stderr, retval = func.run(42)
- assert retval == 0
- assert stdout == '42\n'
- assert stderr == 'Hello world 42\n'
-
- def fn(s):
- # too many arguments, ignore it
- debug_print('Hello world', 42, 43, 44, 45, 46, 47, 48)
- return s
- func = self._compile(fn, [42])
- stdout, stderr, retval = func.run(42)
- assert retval == 0
- assert stdout == '42\n'
- assert stderr == ''
More information about the Pypy-commit
mailing list