Skip to content

Commit

Permalink
Slider fix
Browse files Browse the repository at this point in the history
is none vs == None.
this check is to ensure that the default None passthrough works correctly
  • Loading branch information
jcassagnol-public committed Nov 10, 2021
1 parent d83d77d commit 27951cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SCons/UtilTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,12 +945,12 @@ def __init__(self, *args, **kwargs):
def basic_failover_bad_hashlib_hash_init(self):
"""Tests that if the hashing function is entirely missing from hashlib (hashlib returns None),
the hash init function returns None"""
assert _attempt_init_of_python_3_9_hash_object(None) == None
assert _attempt_init_of_python_3_9_hash_object(None) is None

def basic_failover_bad_hashlib_hash_get(self):
"""Tests that if the hashing function is entirely missing from hashlib (hashlib returns None),
the hash get function returns None"""
assert _attempt_get_hash_function("nonexist", self.no_algorithms) == None
assert _attempt_get_hash_function("nonexist", self.no_algorithms) is None

def test_usedforsecurity_flag_behavior(self):
"""Test usedforsecurity flag -> should be set to 'True' on older versions of python, and 'False' on Python >= 3.9"""
Expand Down

0 comments on commit 27951cb

Please sign in to comment.