Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Apr 29, 2024
1 parent f748f05 commit 9e640ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scico/test/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ def _internet_connected(host="8.8.8.8", port=53, timeout=3):

@pytest.mark.skipif(not _internet_connected(), reason="No internet connection")
def test_url_get():
url = "https://github.com/lanl/scico/blob/main/README.rst"
url = "https://github.com/lanl/scico/blob/main/README.md"
assert not url_get(url).getvalue().find(b"SCICO") == -1

url = "about:blank"
np.testing.assert_raises(urlerror.URLError, url_get, url)

url = "https://github.com/lanl/scico/blob/main/README.rst"
url = "https://github.com/lanl/scico/blob/main/README.md"
np.testing.assert_raises(ValueError, url_get, url, -1)


Expand Down

0 comments on commit 9e640ac

Please sign in to comment.