Skip to content

Commit d76bbd8

Browse files
committed
Attempt to fix regexes
1 parent 23b4f54 commit d76bbd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_function.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def test_call_mro():
459459
assert (c <= 2) == 1
460460
with pytest.raises(
461461
NotFoundLookupError,
462-
match=r"(?i)^`C.__le__\(.+\)` could not be\n?\s*resolved",
462+
match=r"(?i)^`C\.__le__\(.+\)` could not\s*be\s*resolved.*",
463463
):
464464
c <= "2" # noqa
465465

@@ -479,15 +479,15 @@ def test_call_abstract():
479479
def test_call_object():
480480
with pytest.raises(
481481
NotFoundLookupError,
482-
match=r"(?is)^`B.__init__\(.+\)` could not be\n?\s*resolved",
482+
match=r"(?is)^`B\.__init__\(.+\)` could not\s*be\s*resolved.*",
483483
):
484484
# Construction requires no arguments. Giving an argument should propagate to
485485
# `B` and then error.
486486
C(1)
487487

488488
with pytest.raises(
489489
NotFoundLookupError,
490-
match=r"(?is)^`C.__call__\(.+\)` could not be\n?\s*resolved",
490+
match=r"(?is)^`C\.__call__\(.+\)` could not\s*be\s*resolved.*",
491491
):
492492
# Calling requires no arguments.
493493
C()(1)

0 commit comments

Comments
 (0)