diff options
| author | Erik Romijn <eromijn@solidlinks.nl> | 2014-03-02 09:02:42 +0100 |
|---|---|---|
| committer | Erik Romijn <eromijn@solidlinks.nl> | 2014-03-02 09:02:42 +0100 |
| commit | 6268792e19ab37446e438f4777c0bb8e786c5c3f (patch) | |
| tree | 5f67299a7e201089ceef12c49ac56692df831052 | |
| parent | f732d55dfcd06faf16a5d45798ae2f53d7784d66 (diff) | |
Fixed #22130 -- fixed template_tests/defaultfilters order dependent test failure
| -rw-r--r-- | tests/defaultfilters/tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/defaultfilters/tests.py b/tests/defaultfilters/tests.py index 5ff31cc025..47381b7db7 100644 --- a/tests/defaultfilters/tests.py +++ b/tests/defaultfilters/tests.py @@ -125,11 +125,10 @@ class DefaultFiltersTests(TestCase): 'paragraph separator:\\u2029and line separator:\\u2028') def test_fix_ampersands(self): - with warnings.catch_warnings(record=True) as w: - warnings.simplefilter("always", DeprecationWarning) + with warnings.catch_warnings(): + warnings.simplefilter("ignore", DeprecationWarning) self.assertEqual(fix_ampersands_filter('Jack & Jill & Jeroboam'), 'Jack & Jill & Jeroboam') - self.assertEqual(len(w), 1) def test_linenumbers(self): self.assertEqual(linenumbers('line 1\nline 2'), |
