Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/testing/common/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
from time import sleep
from shutil import copytree, rmtree
from datetime import datetime
import collections
try:
from collections.abc import Callable
except ImportError:
from collections import Callable


class DatabaseFactory(object):
Expand Down Expand Up @@ -285,7 +288,7 @@ def decorator(fn, path=arg):

return skipIf(cond, "%s not found" % self.name)(fn)

if isinstance(arg, collections.Callable): # execute as simple decorator
if isinstance(arg, Callable): # execute as simple decorator
return decorator(arg, None)
else: # execute with path argument
return decorator
Expand Down