Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2383 from erikr/fix-tests-fix-ampersands-deprecation

Fixed #22130 -- fixed template_tests/defaultfilters order dependent test failure
  • Loading branch information...
commit a08f906556c14357852bbc9c4c7d10c6558dafcf 2 parents 7ba2918 + 6268792
Aymeric Augustin aaugustin authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/defaultfilters/tests.py
5 tests/defaultfilters/tests.py
View
@@ -125,11 +125,10 @@ def test_escapejs(self):
'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'),
Please sign in to comment.
Something went wrong with that request. Please try again.