diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2014-05-30 09:44:04 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2014-05-30 10:41:51 +0300 |
commit | 1c844df9d58674b8d79a6e440b0f470c514b8c9a (patch) | |
tree | 0d3d1244e8b067173aa37190e99dc749d3bca5f6 /apscheduler | |
parent | b56ba7f41b4c4f3784bc326ce2cc7ea7133ca263 (diff) | |
download | apscheduler-1c844df9d58674b8d79a6e440b0f470c514b8c9a.tar.gz |
Overhauled the tests for apscheduler.util module
Diffstat (limited to 'apscheduler')
-rw-r--r-- | apscheduler/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apscheduler/util.py b/apscheduler/util.py index 0f5d2d6..ef8a9c7 100644 --- a/apscheduler/util.py +++ b/apscheduler/util.py @@ -11,7 +11,7 @@ import six try: from inspect import signature -except ImportError: +except ImportError: # pragma: nocover try: from funcsigs import signature except ImportError: @@ -107,7 +107,7 @@ def convert_to_datetime(input, tz, arg_name): values = dict(values) datetime_ = datetime(**values) else: - raise TypeError('Unsupported input type: %s' % type(input)) + raise TypeError('Unsupported input type: %s' % input.__class__.__name__) if datetime_.tzinfo is not None: return datetime_ |