Skip to content

Commit

Permalink
Compare against None using 'is' instead of '=='
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed Aug 30, 2023
1 parent 1e54014 commit 552c7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittests/portadmin/portadmin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_set_ifalias_hp(self, handler_hp):
interface = Mock()
interface.ifindex = 1
assert (
handler_hp.set_interface_description(interface, "punkt1") == None
handler_hp.set_interface_description(interface, "punkt1") is None
), "setIfAlias failed"


Expand Down

0 comments on commit 552c7b9

Please sign in to comment.