mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 03:15:09 -05:00
630c39d8df
* gnu/packages/machine-learning.scm (onnx)[source]: Change to 'git-fetch'. Add "onnx-skip-model-downloads.patch". [arguments]: Add 'make-test-directory-writable' phase. * gnu/packages/patches/onnx-skip-model-downloads.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it.
16 lines
734 B
Diff
16 lines
734 B
Diff
A few tests require downloading models from URLs such as
|
|
<https://s3.amazonaws.com/download.onnx/models/opset_9/zfnet512.tar.gz>.
|
|
Skip those.
|
|
|
|
diff --git a/onnx/backend/test/runner/__init__.py b/onnx/backend/test/runner/__init__.py
|
|
index 049ed57b..f236f1bf 100644
|
|
--- a/onnx/backend/test/runner/__init__.py
|
|
+++ b/onnx/backend/test/runner/__init__.py
|
|
@@ -202,6 +202,7 @@ class Runner(object):
|
|
print('Start downloading model {} from {}'.format(
|
|
model_test.model_name,
|
|
model_test.url))
|
|
+ raise unittest.SkipTest('Skipping download')
|
|
urlretrieve(model_test.url, download_file.name)
|
|
print('Done')
|
|
with tarfile.open(download_file.name) as t:
|