Skip to content

Commit

Permalink
Adjust the test to pass if both values reference the same file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 20, 2024
1 parent 8ebebb6 commit d12c13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distutils/tests/test_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def test_find_executable(self, tmp_path):
rv = find_executable(program, path=tmp_dir)
assert rv == filename

if sys.platform == 'win32':
if sys.platform == 'win32': # pragma: no cover
# test without ".exe" extension
rv = find_executable(program_noeext, path=tmp_dir)
assert rv == filename
assert os.path.samefile(rv, filename)

# test find in the current directory
with tmp_dir:
Expand Down

0 comments on commit d12c13e

Please sign in to comment.