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

Commit52e7360

Browse files
committed
Explain substring assertions in test_toplevel
1 parenta0ef537 commit52e7360

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/deprecation/test_toplevel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ def test_util_alias_import() -> None:
7676
# prior to retrieving the attribute for actual use. However, all warnings should
7777
# have the same message, and it should be our util-specific message.
7878
(message,)= {str(entry.message)forentryinctx}
79-
assert"git.util"inmessage
80-
assert"git.index.util"inmessage
81-
assert"should not be relied on"inmessage
79+
assert"git.util"inmessage,"Has alias."
80+
assert"git.index.util"inmessage,"Has target."
81+
assert"should not be relied on"inmessage,"Distinct from other messages."
8282

8383
# As above, we check access through the util alias to the TemporaryFileSwap member.
8484
fromgit.index.utilimportTemporaryFileSwap

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp