File: numba.patch

package info (click to toggle)
python-numpy-groupies 0.9.20-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 616 kB
  • sloc: python: 3,701; makefile: 12
file content (15 lines) | stat: -rw-r--r-- 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Don't fail without numba.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: https://github.com/ml31415/numpy-groupies/pull/72

--- a/numpy_groupies/tests/__init__.py
+++ b/numpy_groupies/tests/__init__.py
@@ -20,7 +20,7 @@ _implementations = [i for i in _implemen
 
 
 def _impl_name(impl):
-    if not impl:
+    if not impl or type(impl).__name__ == 'NotSetType':
         return
     return impl.__name__.rsplit('aggregate_', 1)[1].rsplit('_', 1)[-1]