We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d425f9 commit d74dd9cCopy full SHA for d74dd9c
pandas/tests/indexing/test_coercion.py
@@ -29,11 +29,21 @@ def has_test(combo):
29
klass in x.name and dtype in x.name and method in x.name for x in cls_funcs
30
)
31
32
- for combo in combos:
33
- if not has_test(combo):
34
- raise AssertionError(f"test method is not defined: {cls.__name__}, {combo}")
+ opts = request.config.option
+ if opts.lf or opts.keyword:
+ # If we are running with "last-failed" or -k foo, we expect to only
35
+ # run a subset of tests.
36
+ yield
37
- yield
38
+ else:
39
+
40
+ for combo in combos:
41
+ if not has_test(combo):
42
+ raise AssertionError(
43
+ f"test method is not defined: {cls.__name__}, {combo}"
44
+ )
45
46
47
48
49
class CoercionBase:
0 commit comments