Skip to content

Commit

Permalink
Fix test failures on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and jaraco committed Nov 12, 2018
1 parent 3f01334 commit da9caa4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/functional/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,10 @@ def test_install_conflict_warning_can_be_suppressed(script, data):

def test_target_install_ignores_distutils_config_install_prefix(script):
prefix = script.scratch_path / 'prefix'
Path(os.environ['HOME'], '.pydistutils.cfg').write(textwrap.dedent(
distutils_config = Path(os.path.expanduser('~'),
'pydistutils.cfg' if sys.platform == 'win32'
else '.pydistutils.cfg')
distutils_config.write(textwrap.dedent(
'''
[install]
prefix=%s
Expand Down

0 comments on commit da9caa4

Please sign in to comment.