Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5609faa

Browse files
committed
Add missing raises keyword for test_depth xfail
I had forgotten to do this earlier when converting from skip toxfail. Besides consistency with the other uses of xfail in the testsuite, the benefit of passing "raises" is that pytest checks thatthe failure gave the expected exception and makes it a non-expectedfailure if it didn't.
1 parent1d6abdc commit5609faa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎test/test_submodule.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,7 @@ class Repo(object):
10491049

10501050
@pytest.mark.xfail(
10511051
reason="for some unknown reason the assertion fails, even though it in fact is working in more common setup",
1052+
raises=AssertionError,
10521053
)
10531054
@with_rw_directory
10541055
deftest_depth(self,rwdir):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp