File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
"""Tests for dynamic and static errors and warnings in GitPython's git.compat module.
2
2
3
- These tests verify that the is_<platform> aliases are available, and are even listed in
4
- the output of dir(), but issue warnings, and that bogus (misspelled or unrecognized)
3
+ These tests verify that the is_<platform> attributes are available, and are even listed
4
+ in the output of dir(), but issue warnings, and that bogus (misspelled or unrecognized)
5
5
attribute access is still an error both at runtime and with mypy. This is similar to
6
6
some of the tests in test_toplevel, but the situation being tested here is simpler
7
7
because it does not involve unintuitive module aliasing or import behavior. So this only
15
15
16
16
import git .compat
17
17
18
-
19
18
_MESSAGE_LEADER = "{} and other is_<platform> aliases are deprecated."
19
+ """Form taken by the beginning of the warnings issues for is_<platform> access."""
20
20
21
21
22
22
def test_cannot_access_undefined () -> None :
@@ -26,7 +26,7 @@ def test_cannot_access_undefined() -> None:
26
26
27
27
28
28
def test_is_platform () -> None :
29
- """The is_<platform> aliases work, warn, and mypy accepts code accessing them."""
29
+ """The is_<platform> attributes work, warn, and mypy accepts code accessing them."""
30
30
fully_qualified_names = [
31
31
"git.compat.is_win" ,
32
32
"git.compat.is_posix" ,
You can’t perform that action at this time.
0 commit comments