From e99c7e0c550b869d06ad9ab53afe2ca9c23ee41c Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Fri, 20 Jan 2023 18:50:38 +0000 Subject: [PATCH] Account for windows paths in tests --- setuptools/tests/test_sdist.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index e5d86215aa..117c077269 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -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): """