Skip to content

Commit

Permalink
Use assertEqual instead of assertEquals for Python 3.11 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi authored and vdboor committed Nov 18, 2021
1 parent 44758ea commit ceed2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parler/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ def test_get_language_no_fallback(self):
"""Test get_language patch function, no fallback"""

with override(None):
self.assertEquals(get_language(), None)
self.assertEqual(get_language(), None)

@override_parler_settings(PARLER_DEFAULT_ACTIVATE=True)
def test_get_language_with_fallback(self):
"""Test get_language patch function, with fallback"""
from parler import appsettings

with override(None):
self.assertEquals(get_language(), appsettings.PARLER_DEFAULT_LANGUAGE_CODE)
self.assertEqual(get_language(), appsettings.PARLER_DEFAULT_LANGUAGE_CODE)

def test_url_qs(self):
matches = [
Expand Down

0 comments on commit ceed2eb

Please sign in to comment.