Skip to content

Commit 653b2a1

Browse files
authored
[Test] Improve exception message match (#906)
1 parent 3902022 commit 653b2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ def test_implement_for():
112112

113113

114114
def test_implement_for_missing_module():
115-
msg = "Supported version of 'test_utils.missing_module' has not been found."
115+
msg = r"Supported version of .*test_utils.missing_module' has not been found."
116116
with pytest.raises(ModuleNotFoundError, match=msg):
117117
implement_for_test_functions.missing_module()
118118

119119

120120
def test_implement_for_missing_version():
121-
msg = "Supported version of 'test_utils.missing_version' has not been found."
121+
msg = r"Supported version of .*test_utils.missing_version' has not been found."
122122
with pytest.raises(ModuleNotFoundError, match=msg):
123123
implement_for_test_functions.missing_version()
124124

0 commit comments

Comments
 (0)