File: 02_avoid_test_failure_on_s390x.diff

package info (click to toggle)
pytest-regressions 2.5.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,012 kB
  • sloc: python: 2,367; makefile: 18
file content (18 lines) | stat: -rw-r--r-- 610 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Avoid test failure on s390x by disabling a single test, pending upstream
# insights/action on https://github.com/ESSS/pytest-regressions/issues/156
--- a/tests/test_ndarrays_regression.py
+++ b/tests/test_ndarrays_regression.py
@@ -1,4 +1,5 @@
 import sys
+import platform
 
 import numpy as np
 import pytest
@@ -276,6 +277,7 @@
     assert expected in obtained_error_msg
 
 
+@pytest.mark.skipif(platform.machine().lower() == "s390x", reason="fails on s390x")
 def test_different_data_types(ndarrays_regression, no_regen):
     # Generate data with integer array.
     data = {"data1": np.array([1] * 10)}