Skip to content

Commit

Permalink
Account for windows paths in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Jan 20, 2023
1 parent 545ed8b commit e99c7e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setuptools/tests/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,14 @@ def test_add_files_referenced_by_config_directives(self, tmp_path, config):
with quiet():
cmd.run()

assert 'src/VERSION.txt' in cmd.filelist.files
assert (
'src/VERSION.txt' in cmd.filelist.files
or 'src\\VERSION.txt' in cmd.filelist.files
)
assert 'USAGE.rst' in cmd.filelist.files
assert 'DOWHATYOUWANT' in cmd.filelist.files
assert '/' not in cmd.filelist.files
assert '\\' not in cmd.filelist.files

def test_pyproject_toml_in_sdist(self, tmpdir):
"""
Expand Down

0 comments on commit e99c7e0

Please sign in to comment.