Skip to content

Commit f505aff

Browse files
author
Thomas Gilgenast
committed
tweak tests for github implementation
1 parent a751042 commit f505aff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fsspec/implementations/tests/test_github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_github_open_large_file():
1616
"github://mwaskom:seaborn-data@83bfba7/brain_networks.csv", block_size=0
1717
) as f:
1818
# read only the first 20 bytes of the file
19-
assert f.read(20).startswith(b"network,1,1,2,2,3,3,")
19+
assert f.read(20) == b"network,1,1,2,2,3,3,"
2020

2121

2222
def test_github_open_lfs_file():
@@ -25,7 +25,7 @@ def test_github_open_lfs_file():
2525
"github://cBioPortal:datahub@55cd360"
2626
"/public/acc_2019/data_gene_panel_matrix.txt",
2727
) as f:
28-
assert f.readline().startswith(b"SAMPLE_ID\tmutations")
28+
assert f.read(19) == b"SAMPLE_ID\tmutations"
2929

3030

3131
def test_github_cat():

0 commit comments

Comments
 (0)