File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 55
66import flint
77
8- dunder_test_regex = re .compile (r'^(.*?)__test__\..*?\.(.*) \(line (\d+)\)$' )
8+ dunder_test_regex = re .compile (r'^(.*?)__test__\.(.*?\.)(.*) \(line (\d+)\)$' )
9+
10+ test_flint_at_least = {
11+ "flint.types._gr.gr_ctx.gens" : 30100 ,
12+ "flint.types._gr.gr_ctx.neg" : 30100 ,
13+ }
914
1015
1116def find_doctests (module ):
@@ -20,9 +25,14 @@ def find_doctests(module):
2025 m = dunder_test_regex .match (test .name )
2126 if m is not None :
2227 groups = m .groups ()
23- test .name = groups [0 ] + groups [1 ]
24- test .lineno = int (groups [2 ])
25- res .append (test )
28+ test .name = groups [0 ] + groups [2 ]
29+ test .lineno = int (groups [3 ])
30+
31+ if (
32+ test_flint_at_least .get ("" .join (groups [:3 ]), flint .__FLINT_RELEASE__ )
33+ <= flint .__FLINT_RELEASE__
34+ ):
35+ res .append (test )
2636
2737 tests .append ((module_info .name , res ))
2838
You can’t perform that action at this time.
0 commit comments