summaryrefslogtreecommitdiff
path: root/tests/test_localedata.py
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2017-12-28 11:13:50 +0200
committerHugo <hugovk@users.noreply.github.com>2017-12-28 11:13:50 +0200
commit05974ff14feda12a0d292a560313961796e69113 (patch)
treee056c12a93c0170cbcc7cb08380df3424917749d /tests/test_localedata.py
parent0c404b58b25f8e2e115d51fddd5d5716969af219 (diff)
downloadbabel-05974ff14feda12a0d292a560313961796e69113.tar.gz
Replace comparison with None with equality operator
Diffstat (limited to 'tests/test_localedata.py')
-rw-r--r--tests/test_localedata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_localedata.py b/tests/test_localedata.py
index 3599b21..5d6c800 100644
--- a/tests/test_localedata.py
+++ b/tests/test_localedata.py
@@ -108,12 +108,12 @@ def test_pi_support_not_frozen():
def test_locale_argument_acceptance():
# Testing None input.
normalized_locale = localedata.normalize_locale(None)
- assert normalized_locale == None
+ assert normalized_locale is None
locale_exist = localedata.exists(None)
assert locale_exist == False
# # Testing list input.
normalized_locale = localedata.normalize_locale(['en_us', None])
- assert normalized_locale == None
+ assert normalized_locale is None
locale_exist = localedata.exists(['en_us', None])
assert locale_exist == False