diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:49:40 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:49:40 +0100 |
commit | 9b529a23f64c4b27c427a2680428f3e17531e9c3 (patch) | |
tree | 6647b5b6639201d2a18767b6fa4c3f73a36be61b /tests | |
parent | 52ecfe48860ed04a80532fd7a01b51fbed9c7217 (diff) | |
download | paste-9b529a23f64c4b27c427a2680428f3e17531e9c3.tar.gz |
Python 3: use new style of raise, replace "raise class, args" with "raise class(args)"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_util/test_datetimeutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_util/test_datetimeutil.py b/tests/test_util/test_datetimeutil.py index 3cd91ba..17808f3 100644 --- a/tests/test_util/test_datetimeutil.py +++ b/tests/test_util/test_datetimeutil.py @@ -116,7 +116,7 @@ def test_date(): normalize_date(val)
except (TypeError,ValueError):
return
- raise "type error expected", val
+ raise ValueError("type error expected", val)
assertError("2000-13-11")
assertError("APR 99")
|