version number? Yes, they did! - Rebased patches OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-nptyping?expand=0&rev=9
26 lines
643 B
Diff
26 lines
643 B
Diff
---
|
|
tests/test_performance.py | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
--- a/tests/test_performance.py
|
|
+++ b/tests/test_performance.py
|
|
@@ -1,5 +1,6 @@
|
|
from timeit import Timer
|
|
-from unittest import TestCase
|
|
+import platform
|
|
+import unittest
|
|
|
|
import numpy as np
|
|
|
|
@@ -10,7 +11,9 @@ from nptyping import (
|
|
)
|
|
|
|
|
|
-class PerformanceTest(TestCase):
|
|
+@unittest.skipIf(platform.machine in ('i586', 'aarch64'),
|
|
+ "not supported on this architecture")
|
|
+class PerformanceTest(unittest.TestCase):
|
|
def test_instance_check_performance(self):
|
|
|
|
arr = np.random.randn(42, 42, 3, 5)
|