File: test_no_perfplot.patch

package info (click to toggle)
python-dmsh 0.2.19-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 480 kB
  • sloc: python: 1,893; makefile: 5
file content (36 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Index: python-dmsh/tests/test_speed.py
===================================================================
--- python-dmsh.orig/tests/test_speed.py	2022-03-02 10:32:59.578139319 +0100
+++ python-dmsh/tests/test_speed.py	2022-03-02 10:33:34.782444196 +0100
@@ -1,5 +1,5 @@
 import numpy as np
-import perfplot
+#import perfplot
 import pytest
 from matplotlib import path
 
@@ -20,15 +20,15 @@
 
     np.random.seed(0)
 
-    perfplot.show(
-        setup=lambda n: np.random.rand(n, 2),
-        kernels=[_mpl_path, _pypathlib_contains_points],
-        n_range=[2**k for k in range(n)],
-        labels=["matplotlib.path.contains_points", "pypathlib.contains_points"],
-        logx=True,
-        logy=True,
-        xlabel="num points",
-    )
+#    perfplot.show(
+#        setup=lambda n: np.random.rand(n, 2),
+#        kernels=[_mpl_path, _pypathlib_contains_points],
+#        n_range=[2**k for k in range(n)],
+#        labels=["matplotlib.path.contains_points", "pypathlib.contains_points"],
+#        logx=True,
+#        logy=True,
+#        xlabel="num points",
+#    )
 
 
 def benchmark():