python-flask-restful/0002-Support-aniso8601-3.0-in-tests.patch

26 lines
693 B
Diff
Raw Normal View History

2019-11-19 11:53:49 +08:00
From 54979f0a49b2217babc53c5b65b5df10b6de8e05 Mon Sep 17 00:00:00 2001
From: Josh Friend <josh@fueledbycaffeine.com>
Date: Thu, 29 Mar 2018 14:55:35 -0400
Subject: [PATCH] Support aniso8601 >3.0 in tests
---
tests/test_inputs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_inputs.py b/tests/test_inputs.py
index 90a2fb0..6cb9e9b 100644
--- tests/test_inputs.py
+++ tests/test_inputs.py
@@ -417,7 +417,7 @@ def test_bad_isointervals():
for bad_interval in bad_intervals:
yield (
assert_raises,
- ValueError,
+ Exception,
inputs.iso8601interval,
bad_interval,
)
--
2.17.0