Move Interrupted exception class out of Session
This commit is contained in:
parent
35bea86c9f
commit
62ca4ae963
|
@ -498,10 +498,12 @@ class Item(Node):
|
||||||
class NoMatch(Exception):
|
class NoMatch(Exception):
|
||||||
""" raised if matching cannot locate a matching names. """
|
""" raised if matching cannot locate a matching names. """
|
||||||
|
|
||||||
|
class Interrupted(KeyboardInterrupt):
|
||||||
|
""" signals an interrupted test run. """
|
||||||
|
__module__ = 'builtins' # for py3
|
||||||
|
|
||||||
class Session(FSCollector):
|
class Session(FSCollector):
|
||||||
class Interrupted(KeyboardInterrupt):
|
Interrupted = Interrupted
|
||||||
""" signals an interrupted test run. """
|
|
||||||
__module__ = 'builtins' # for py3
|
|
||||||
|
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
FSCollector.__init__(self, config.rootdir, parent=None,
|
FSCollector.__init__(self, config.rootdir, parent=None,
|
||||||
|
|
Loading…
Reference in New Issue