2022-05-05 10:37:17 +00:00
|
|
|
---
|
|
|
|
|
tests/test_performance.py | 7 +++++--
|
|
|
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
|
|
2024-02-20 08:19:28 +00:00
|
|
|
--- a/tests/test_performance.py
|
|
|
|
|
+++ b/tests/test_performance.py
|
2022-05-05 10:37:17 +00:00
|
|
|
@@ -1,5 +1,6 @@
|
2024-02-20 08:19:28 +00:00
|
|
|
from timeit import Timer
|
|
|
|
|
-from unittest import TestCase
|
|
|
|
|
+import platform
|
|
|
|
|
+import unittest
|
|
|
|
|
|
|
|
|
|
import numpy as np
|
|
|
|
|
|
2022-05-05 10:37:17 +00:00
|
|
|
@@ -10,7 +11,9 @@ from nptyping import (
|
2024-02-20 08:19:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-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)
|