diff options
Diffstat (limited to 'tests/migrations/test_graph.py')
| -rw-r--r-- | tests/migrations/test_graph.py | 2 |
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) |
