Skip to content

Commit

Permalink
Fix up some tests for older Pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Apr 26, 2017
1 parent 6e3ca78 commit b733747
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions nsist/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def test_prepare_bin_dir():
with TemporaryDirectory() as td:
td = Path(td)
commands.prepare_bin_directory(td, cmds)
assert_isfile(td / 'acommand.exe')
assert_isfile(str(td / 'acommand.exe'))
script_file = td / 'acommand-script.py'
assert_isfile(script_file)
assert_isfile(str(script_file))

with script_file.open() as f:
script_contents = f.read()
Expand Down
6 changes: 3 additions & 3 deletions nsist/tests/test_pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def test_download():
wd = WheelDownloader("astsearch==0.1.2", "3.5.1", 64)
wheel = wd.fetch()
assert_isfile(wheel)
assert_isfile(str(wheel))

with TemporaryDirectory() as td:
extract_wheel(wheel, target_dir=td)
Expand Down Expand Up @@ -99,8 +99,8 @@ def test_merge_dir_to():

merge_dir_to(td2, td1)

assert_isfile(td1 / 'subdir' / 'foo')
assert_isfile(td1 / 'subdir' / 'bar')
assert_isfile(str(td1 / 'subdir' / 'foo'))
assert_isfile(str(td1 / 'subdir' / 'bar'))
with (td1 / 'ab').open() as f:
assert_equal(f.read(), u"alternate")

Expand Down

0 comments on commit b733747

Please sign in to comment.