forked from gitpython-developers/GitPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit a078d01
committed
Mark TestSubmodule.test_rename xfail on Windows
The test fails when attempting to evaluate the expression:
sm.move(new_path).name
as part of the assertion:
assert sm.move(new_path).name == new_path
But it is the call to sm.move that fails, not the assertion itself.
The condition is never evaluated, because the subexpression raises
PermissionError. Details are in the xfail reason string.
This test_submodule.TestSubmodule.test_rename method should not be
confused with test_config.TestBase.test_rename, which passes on all
platforms.
Surprisingly, on CI, this has XPASS status on Python 3.7. Somehow
the test is passing, but only on CI, and only on 3.7. This should
be investigated. The xfail condition could be adjusted, but locally
on Windows I find it to fail, even on 3.7.9 (the exact version the
CI test runner reports it is using for Python 3.7). If the xfail
condition cannot be made more accurate, a comment could be added.1 parent f72e282 commit a078d01
1 file changed
+11
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
949 | 949 |
| |
950 | 950 |
| |
951 | 951 |
| |
952 | + | ||
953 | + | ||
954 | + | ||
955 | + | ||
956 | + | ||
957 | + | ||
958 | + | ||
959 | + | ||
960 | + | ||
961 | + | ||
962 | + | ||
952 | 963 |
| |
953 | 964 |
| |
954 | 965 |
| |
|
0 commit comments