Loading tests/deprecation/tests.py +2 −4 Original line number Diff line number Diff line Loading @@ -193,9 +193,8 @@ class DeprecatingRequestMergeDictTest(SimpleTestCase): @override_settings(USE_I18N=True) class DeprecatedChineseLanguageCodes(SimpleTestCase): def test_deprecation_warning(self): warnings.simplefilter('always') with warnings.catch_warnings(record=True) as recorded: warnings.simplefilter('always') with translation.override('zh-cn'): pass with translation.override('zh-tw'): Loading @@ -214,9 +213,8 @@ class DeprecatingMemoizeTest(SimpleTestCase): """ Ensure the correct warning is raised when memoize is used. """ warnings.simplefilter('always') with warnings.catch_warnings(record=True) as recorded: warnings.simplefilter('always') memoize(lambda x: x, {}, 1) msg = str(recorded.pop().message) self.assertEqual(msg, Loading Loading
tests/deprecation/tests.py +2 −4 Original line number Diff line number Diff line Loading @@ -193,9 +193,8 @@ class DeprecatingRequestMergeDictTest(SimpleTestCase): @override_settings(USE_I18N=True) class DeprecatedChineseLanguageCodes(SimpleTestCase): def test_deprecation_warning(self): warnings.simplefilter('always') with warnings.catch_warnings(record=True) as recorded: warnings.simplefilter('always') with translation.override('zh-cn'): pass with translation.override('zh-tw'): Loading @@ -214,9 +213,8 @@ class DeprecatingMemoizeTest(SimpleTestCase): """ Ensure the correct warning is raised when memoize is used. """ warnings.simplefilter('always') with warnings.catch_warnings(record=True) as recorded: warnings.simplefilter('always') memoize(lambda x: x, {}, 1) msg = str(recorded.pop().message) self.assertEqual(msg, Loading