Skip to content

Commit 700c834

Browse files
committed
Address nitpicks flagged by @coderabbitai
1 parent 9ee14ef commit 700c834

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_interval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def test_eq(self):
8585
def test_eq_type_check(self):
8686
# doesn't currently support comparison with anything else
8787
interval = UndateInterval(Undate(900))
88-
# returns NotIplemented if comparison with this type is not supported
88+
# returns NotImplemented if comparison with this type is not supported
8989
assert interval.__eq__("foo") == NotImplemented
9090

9191
def test_not_eq(self):
@@ -207,7 +207,7 @@ def test_contains(self):
207207
assert datetime.date(1922, 5, 1) in century20th
208208
# unsupported types result in a type error
209209
with pytest.raises(TypeError):
210-
"nineteen-eighty-four" in century20th
210+
assert "nineteen-eighty-four" in century20th
211211

212212
# contains check with half-open intervals
213213
after_c11th = UndateInterval(Undate(1001), None)

0 commit comments

Comments
 (0)