Skip to content

Commit 19b3c08

Browse files
committed
Clarify comment about is_<platform> value assertions
1 parent 488cc13 commit 19b3c08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/deprecation/test_compat.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def test_is_platform() -> None:
5353
for fullname, message in zip(fully_qualified_names, messages):
5454
assert message.startswith(_MESSAGE_LEADER.format(fullname))
5555

56-
# These exactly reproduce the expressions in the code under test, so they are not
57-
# good for testing that the values are correct. Instead, the purpose of this test is
58-
# to ensure that any dynamic machinery put in place in git.compat to cause warnings
59-
# to be issued does not get in the way of the intended values being accessed.
56+
# These assertions exactly reproduce the expressions in the code under test, so they
57+
# are not good for testing that the values are correct. Instead, their purpose is to
58+
# ensure that any dynamic machinery put in place in git.compat to cause warnings to
59+
# be issued does not get in the way of the intended values being accessed.
6060
assert is_win == (os.name == "nt")
6161
assert is_posix == (os.name == "posix")
6262
assert is_darwin == (sys.platform == "darwin")

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