summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:49:40 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:49:40 +0100
commit9b529a23f64c4b27c427a2680428f3e17531e9c3 (patch)
tree6647b5b6639201d2a18767b6fa4c3f73a36be61b /tests
parent52ecfe48860ed04a80532fd7a01b51fbed9c7217 (diff)
downloadpaste-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.py2
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")