-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dependency: base_pep_508_name always posix + fix tests (#463)
The tests for `FileDependency` and `DirectoryDependency` use the following assert: ``` assert dep.to_pep_508() == pep_508_output or pep_508_input ``` which is equal to ``` assert (dep.to_pep_508() == pep_508_output) or pep_508_input ``` and thus, always true if there is an `pep_508_input`. Actually it should be ``` assert dep.to_pep_508() == (pep_508_output or pep_508_input) ``` While fixing the tests, I noticed that the output for relative paths was platform-dependent. I changed it to always return posix paths.
- Loading branch information
Showing
4 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters