Skip to content

Commit

Permalink
Okay there's potential here :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Nov 11, 2015
1 parent fefc488 commit 84ee9b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pip_accel/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
from pip_accel.utils import find_installed_version, uninstall

# Test dependencies.
from executor import CommandNotFound
from executor import CommandNotFound, which
from executor.ssh.server import EphemeralTCPServer
from portalocker import Lock

Expand Down Expand Up @@ -1021,8 +1021,11 @@ def __init__(self, **options):
The pathname of the temporary directory used to store the files
required to run the FakeS3 server (a string).
"""
# Find the absolute pathname of FakeS3 (relevant on Windows).
matches = which('fakes3')
program = matches[0] if matches else ''
# Initialize the superclass.
command = ['fakes3', '--root=%s' % self.root, '--port=%s' % self.port_number]
command = [program, '--root=%s' % self.root, '--port=%s' % self.port_number]
super(FakeS3Server, self).__init__(*command, scheme='s3', logger=logger, **options)

@property
Expand Down

0 comments on commit 84ee9b6

Please sign in to comment.