summaryrefslogtreecommitdiff
path: root/tests/migrations/test_graph.py
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2015-11-13 15:54:05 -0500
committerSimon Charette <charette.s@gmail.com>2015-11-14 11:33:28 -0500
commit1c5f4e86bc9c7bae5d5f3830d9cfbb0043297261 (patch)
treefe79a6afb78716fad02cd0659f336e459b1576b6 /tests/migrations/test_graph.py
parentd95b22bd56764c71047ec16f628c00c0fd997cfd (diff)
Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.
Diffstat (limited to 'tests/migrations/test_graph.py')
-rw-r--r--tests/migrations/test_graph.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/migrations/test_graph.py b/tests/migrations/test_graph.py
index 29738dfdf0..6260d41887 100644
--- a/tests/migrations/test_graph.py
+++ b/tests/migrations/test_graph.py
@@ -197,6 +197,7 @@ class GraphTests(SimpleTestCase):
leaf = expected[-1]
with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter('always', RuntimeWarning)
forwards_plan = graph.forwards_plan(leaf)
self.assertEqual(len(w), 1)
@@ -205,6 +206,7 @@ class GraphTests(SimpleTestCase):
self.assertEqual(expected, forwards_plan)
with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter('always', RuntimeWarning)
backwards_plan = graph.backwards_plan(root)
self.assertEqual(len(w), 1)