Skip to content

Commit

Permalink
Use custom prompt in sudo call from test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Oct 30, 2015
1 parent 95356ba commit 6e1ebc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pip_accel/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,11 @@ def test_system_package_dependency_installation(self):
# removing any (reverse) dependencies (we don't actually want to
# break the system, thank you very much :-). Disclaimer: you opt in
# to this with $PIP_ACCEL_TEST_AUTO_INSTALL...
subprocess.call(['sudo', 'dpkg', '--remove', '--force-depends', 'libxslt1-dev'])
lxml_dependency = 'libxslt1-dev'
subprocess.call([
'sudo', '-p', "\n Please provide sudo access to (temporarily) remove %s: " % lxml_dependency,
'dpkg', '--remove', '--force-depends', lxml_dependency,
])
# Make sure that when automatic installation is disabled the system
# package manager refuses to install the missing dependency.
accelerator = self.initialize_pip_accel(auto_install=False, data_directory=create_temporary_directory())
Expand Down

0 comments on commit 6e1ebc3

Please sign in to comment.