Skip to content

Commit

Permalink
Make more portable
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Jul 7, 2013
1 parent 551158a commit 6d7ed18
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test_autoflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

import contextlib
import io
import subprocess
import sys
import tempfile
import unittest

Expand Down Expand Up @@ -776,8 +778,8 @@ def test_end_to_end(self):
x = os.sep
print(x)
""") as filename:
import subprocess
process = subprocess.Popen(['./autoflake',
process = subprocess.Popen([sys.executable,
'./autoflake',
'--imports=fake_foo,fake_bar',
filename],
stdout=subprocess.PIPE)
Expand All @@ -798,8 +800,8 @@ def test_end_to_end_with_remove_all_unused_imports(self):
x = os.sep
print(x)
""") as filename:
import subprocess
process = subprocess.Popen(['./autoflake',
process = subprocess.Popen([sys.executable,
'./autoflake',
'--remove-all',
filename],
stdout=subprocess.PIPE)
Expand All @@ -818,8 +820,8 @@ def test_end_to_end_with_error(self):
x = os.sep
print(x)
""") as filename:
import subprocess
process = subprocess.Popen(['./autoflake',
process = subprocess.Popen([sys.executable,
'./autoflake',
'--imports=fake_foo,fake_bar',
'--remove-all',
filename],
Expand Down

0 comments on commit 6d7ed18

Please sign in to comment.