-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE | ||
from __future__ import absolute_import | ||
import pytest # noqa: F401 | ||
import numpy as np # noqa: F401 | ||
import awkward as ak # noqa: F401 | ||
import urllib.request | ||
import urllib.error | ||
|
||
|
||
@pytest.mark.skipif(not ak._util.win, reason="requires Windows") | ||
def test(): | ||
url = "https://raw.githubusercontent.com/Chicago/osd-bike-routes/master/data/Bikeroutes.geojson" | ||
try: | ||
bikeroutes_json = urllib.request.urlopen(url).read() | ||
except urllib.error.URLError: | ||
pytest.skip(reason="couldn't download sample dataset") | ||
|
||
# This shouldn't fail (see #1084) | ||
ak.from_json(bikeroutes_json) |