Skip to content

Commit

Permalink
make appveyor happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Juarez Rudsatz committed Jun 25, 2020
1 parent ef01f5d commit 4f8eb6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions petl/test/io/test_remotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,18 @@ def _write_read_into_url(base_url):
def _write_read_file_into_url(base_url, filename, compression=None):
if ".avro" in filename and not _has_avro:
return
is_local = base_url.startswith("./")
if compression is not None:
if is_local:
return
filename = filename + "." + compression
codec = fsspec.utils.infer_compression(filename)
if codec is None:
print("\n - %s SKIPPED " % filename, file=sys.stderr, end="")
return
print("\n - %s " % filename, file=sys.stderr, end="")

if base_url.startswith("./"):
if compression is not None:
return
if is_local:
source_url = base_url + filename
else:
source_url = os.path.join(base_url, filename)
Expand Down

0 comments on commit 4f8eb6a

Please sign in to comment.