File: skip_tests_needing_tensorflow.patch

package info (click to toggle)
umap-learn 0.5.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,468 kB
  • sloc: python: 9,458; sh: 87; makefile: 20
file content (15 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 09 Feb 2023 15:13:30 +0100
Description: Properly skip tests needing tensorflow

--- a/umap/tests/test_parametric_umap.py
+++ b/umap/tests/test_parametric_umap.py
@@ -10,7 +10,7 @@
     import tensorflow as tf
 
     IMPORT_TF = True
-except ImportError:
+except ModuleNotFoundError:
     IMPORT_TF = False
 else:
     from umap.parametric_umap import ParametricUMAP, load_ParametricUMAP