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

Commitd54f851

Browse files
committed
Add test of dir() on git.compat
1 parentf4e5f42 commitd54f851

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎test/deprecation/test_compat.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,17 @@ def test_is_platform() -> None:
5151
assertis_win== (os.name=="nt")
5252
assertis_posix== (os.name=="posix")
5353
assertis_darwin== (sys.platform=="darwin")
54+
55+
56+
deftest_dir()->None:
57+
"""dir() on git.compat lists attributes meant to be public, even if deprecated."""
58+
expected= {
59+
"defenc",
60+
"safe_decode",
61+
"safe_encode",
62+
"win_encode",
63+
"is_darwin",
64+
"is_win",
65+
"is_posix",
66+
}
67+
assertexpected<=set(dir(git.compat))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp