Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing Wang committed Nov 8, 2020
1 parent 6bd787b commit 052eeee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_pyhdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,9 @@ def test_host_in_request(self) -> None:
with pytest.warns(UserWarning) as record:
client.get_file_status("foobar://localhost:50070/")
assert len(record) == 1
assert record[0].message.args[0] == "Unexpected scheme foobar"
message = record[0].message
assert isinstance(message, Warning)
assert message.args[0] == "Unexpected scheme foobar"
assert client.hosts == ["does_not_exist:50070"]

def test_concat(self) -> None:
Expand Down

0 comments on commit 052eeee

Please sign in to comment.