Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 559fd2d

Browse files
committed
tests: source: idx: Download from mirror
Signed-off-by: John Andersen <[email protected]>
1 parent c4f27f6 commit 559fd2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/source/test_idx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111

1212
IDX1_FILE = (
13-
"http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz",
13+
"https://github.com/intel/dffml/files/4283897/train-labels-idx1-ubyte.gz",
1414
pathlib.Path(__file__).parent / "train-labels-idx1-ubyte.gz",
1515
"ba9c11bf9a7f7c2c04127b8b3e568cf70dd3429d9029ca59b7650977a4ac32f8ff5041fe42bc872097487b06a6794e00",
1616
)
1717
IDX3_FILE = (
18-
"http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz",
18+
"https://github.com/intel/dffml/files/4283898/train-images-idx3-ubyte.gz",
1919
pathlib.Path(__file__).parent / "train-images-idx3-ubyte.gz",
2020
"f40eb179f7c3d2637e789663bde56d444a23e4a0a14477a9e6ed88bc39c8ad6eaff68056c0cd9bb60daf0062b70dc8ee",
2121
)
@@ -27,7 +27,7 @@
2727

2828

2929
class TestIDXSources(AsyncTestCase):
30-
@cached_download(*IDX1_FILE, protocol_allowlist=["http://"])
30+
@cached_download(*IDX1_FILE)
3131
async def test_idx1(self, filename):
3232
feature_name = "label"
3333
async with IDX1Source(
@@ -39,7 +39,7 @@ async def test_idx1(self, filename):
3939
self.assertIn(feature_name, records[0].features())
4040
self.assertEqual(records[0].feature(feature_name), 5)
4141

42-
@cached_download(*IDX3_FILE, protocol_allowlist=["http://"])
42+
@cached_download(*IDX3_FILE)
4343
async def test_idx3(self, filename):
4444
feature_name = "image"
4545
async with IDX3Source(

0 commit comments

Comments
 (0)