From b56229d1efd220c6cda107615b6fa93d7861c88f Mon Sep 17 00:00:00 2001 From: Carl Kadie Date: Tue, 2 Jan 2024 18:09:32 -0800 Subject: [PATCH] change file:/// to file:// --- bed_reader/tests/test_open_bed_cloud.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bed_reader/tests/test_open_bed_cloud.py b/bed_reader/tests/test_open_bed_cloud.py index 03fff6a..d242851 100644 --- a/bed_reader/tests/test_open_bed_cloud.py +++ b/bed_reader/tests/test_open_bed_cloud.py @@ -15,7 +15,7 @@ def test_cloud_read1(shared_datadir): import math file = shared_datadir / "plink_sim_10s_100v_10pmiss.bed" - file = "file:///" + str(file.as_posix()) + file = "file://" + str(file.as_posix()) with open_bed(file) as bed: assert bed.iid_count == 10 @@ -34,7 +34,7 @@ def test_cloud_read1(shared_datadir): def test_cloud_write(tmp_path, shared_datadir): in_file = shared_datadir / "plink_sim_10s_100v_10pmiss.bed" - in_file = "file:///" + str(in_file.as_posix()) + in_file = "file://" + str(in_file.as_posix()) out_file = tmp_path / "out.bed" with open_bed(in_file) as bed: @@ -85,7 +85,7 @@ def test_cloud_write(tmp_path, shared_datadir): def test_cloud_overrides(shared_datadir): - file = "file:///" + str((shared_datadir / "some_missing.bed").as_posix()) + file = "file://" + str((shared_datadir / "some_missing.bed").as_posix()) with open_bed(file) as bed: fid = bed.fid iid = bed.iid @@ -168,7 +168,7 @@ def test_cloud_overrides(shared_datadir): def file_to_url(file): file = Path(file) - return "file:///" + str(file.as_posix()) + return "file://" + str(file.as_posix()) def test_cloud_str(shared_datadir):