Fixed #22130 -- fixed template_tests/defaultfilters order dependent test failure
This commit is contained in:
parent
f732d55dfc
commit
6268792e19
|
@ -125,11 +125,10 @@ class DefaultFiltersTests(TestCase):
|
||||||
'paragraph separator:\\u2029and line separator:\\u2028')
|
'paragraph separator:\\u2029and line separator:\\u2028')
|
||||||
|
|
||||||
def test_fix_ampersands(self):
|
def test_fix_ampersands(self):
|
||||||
with warnings.catch_warnings(record=True) as w:
|
with warnings.catch_warnings():
|
||||||
warnings.simplefilter("always", DeprecationWarning)
|
warnings.simplefilter("ignore", DeprecationWarning)
|
||||||
self.assertEqual(fix_ampersands_filter('Jack & Jill & Jeroboam'),
|
self.assertEqual(fix_ampersands_filter('Jack & Jill & Jeroboam'),
|
||||||
'Jack & Jill & Jeroboam')
|
'Jack & Jill & Jeroboam')
|
||||||
self.assertEqual(len(w), 1)
|
|
||||||
|
|
||||||
def test_linenumbers(self):
|
def test_linenumbers(self):
|
||||||
self.assertEqual(linenumbers('line 1\nline 2'),
|
self.assertEqual(linenumbers('line 1\nline 2'),
|
||||||
|
|
Loading…
Reference in New Issue