Move Interrupted exception class out of Session

This commit is contained in:
Thomas Kluyver 2015-07-15 14:28:43 -07:00
parent 35bea86c9f
commit 62ca4ae963
1 changed files with 5 additions and 3 deletions

View File

@ -498,10 +498,12 @@ class Item(Node):
class NoMatch(Exception):
""" raised if matching cannot locate a matching names. """
class Interrupted(KeyboardInterrupt):
""" signals an interrupted test run. """
__module__ = 'builtins' # for py3
class Session(FSCollector):
class Interrupted(KeyboardInterrupt):
""" signals an interrupted test run. """
__module__ = 'builtins' # for py3
Interrupted = Interrupted
def __init__(self, config):
FSCollector.__init__(self, config.rootdir, parent=None,