Enable "warn_unreachable"
Also, remove the dead `isinstance()` check in `Location.relate_to()`
This commit is contained in:
parent
0a5f8f6c55
commit
784d5c8ca0
1 changed files with 3 additions and 9 deletions
|
|
@ -169,11 +169,6 @@ class TestRelateTo:
|
|||
with pytest.raises(RuntimeError, match="once"):
|
||||
location.relate_to(origin)
|
||||
|
||||
def test_call_relate_to_with_wrong_other_type(self, location):
|
||||
"""`other` must be another `Location`."""
|
||||
with pytest.raises(TypeError, match="Location"):
|
||||
location.relate_to(object())
|
||||
|
||||
def test_call_relate_to_with_far_away_other(
|
||||
self,
|
||||
location,
|
||||
|
|
|
|||
Loading…
Reference in a new issue