Skip to content

Commit 52e7360

Browse files
committed
Explain substring assertions in test_toplevel
1 parent a0ef537 commit 52e7360

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) for entry in ctx}
79-
assert "git.util" in message
80-
assert "git.index.util" in message
81-
assert "should not be relied on" in message
79+
assert "git.util" in message, "Has alias."
80+
assert "git.index.util" in message, "Has target."
81+
assert "should not be relied on" in message, "Distinct from other messages."
8282

8383
# As above, we check access through the util alias to the TemporaryFileSwap member.
8484
from git.index.util import TemporaryFileSwap

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy