Skip to content

Commit 72cbed7

Browse files
committed
use '==' instead of 'is' operator in test assertions
1 parent 0abf1ce commit 72cbed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_Jail.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ def cleanup() -> None:
9696
data = read_jail_config_json(f"{dataset.mountpoint}/config.json")
9797

9898
try:
99-
assert data["basejail"] is "no"
99+
assert data["basejail"] == "no"
100100
except KeyError:
101101
pass
102102

103103
try:
104-
assert (data["basejail"] is "") or (data["basejail"] == "none")
104+
assert (data["basejail"] == "") or (data["basejail"] == "none")
105105
except KeyError:
106106
pass
107107

0 commit comments

Comments
 (0)