File: skip_test_xreducer_average.patch

package info (click to toggle)
xtensor 0.27.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,528 kB
  • sloc: cpp: 65,746; makefile: 202; python: 171; javascript: 8
file content (17 lines) | stat: -rw-r--r-- 622 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: xtensor/test/test_xreducer.cpp
===================================================================
--- xtensor.orig/test/test_xreducer.cpp	2023-01-29 13:37:29.862599207 +0100
+++ xtensor/test/test_xreducer.cpp	2023-01-29 13:37:29.854599172 +0100
@@ -596,7 +596,11 @@
 
 #undef TEST_OPT_MEAN
 
-    TEST(xreducer, average)
+#ifndef MARK_FLAKEY_TEST
+#define MARK_FLAKEY_TEST false
+#endif
+    TEST_CASE("xreducer.average"
+         * doctest::may_fail(MARK_FLAKEY_TEST))
     {
         xt::xtensor<float, 2> a = {{3, 4, 2, 1}, {1, 1, 3, 2}};
         xt::xarray<double> all_weights = {{1, 2, 3, 4}, {5, 6, 7, 8}};