Author: Ronan Lamy <[email protected]>
Branch: testing-cleanup
Changeset: r84988:29830f8f8a68
Date: 2016-06-07 01:34 +0100
http://bitbucket.org/pypy/pypy/changeset/29830f8f8a68/

Log:    Kill IntTestFunction.runtest() since it doesn't seem to do anything
        ever

diff --git a/pypy/tool/pytest/inttest.py b/pypy/tool/pytest/inttest.py
--- a/pypy/tool/pytest/inttest.py
+++ b/pypy/tool/pytest/inttest.py
@@ -3,22 +3,9 @@
 # Most pypy tests are of this kind.
 
 import py
-import sys
-from pypy.interpreter.error import OperationError
 from pypy.conftest import PyPyClassCollector
 
 
-def check_keyboard_interrupt(e):
-    # we cannot easily convert w_KeyboardInterrupt to KeyboardInterrupt
-    # in general without a space -- here is an approximation
-    try:
-        if e.w_type.name == 'KeyboardInterrupt':
-            tb = sys.exc_info()[2]
-            raise KeyboardInterrupt, KeyboardInterrupt(), tb
-    except AttributeError:
-        pass
-
-
 marker = py.test.mark.interplevel
 
 
@@ -27,13 +14,6 @@
         super(IntTestFunction, self).__init__(*args, **kwargs)
         self._request.applymarker(marker)
 
-    def runtest(self):
-        try:
-            super(IntTestFunction, self).runtest()
-        except OperationError as e:
-            check_keyboard_interrupt(e)
-            raise
-
 
 class IntInstanceCollector(py.test.collect.Instance):
     Function = IntTestFunction
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to