aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-09-23 11:56:02 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-09-23 11:56:02 -0400
commita48e96b5352f6bc6755202f35324e0dcfde2283b (patch)
tree30f6d41466f84445723bcf5a1063f7a7fc71c6f0 /setuptools/tests
parentda3d5f36862b916941da87d86e13cb74c874ccec (diff)
downloadexternal_python_setuptools-a48e96b5352f6bc6755202f35324e0dcfde2283b.tar.gz
external_python_setuptools-a48e96b5352f6bc6755202f35324e0dcfde2283b.tar.bz2
external_python_setuptools-a48e96b5352f6bc6755202f35324e0dcfde2283b.zip
Update tests to remove use of deprecated get_script_header
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_easy_install.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 955c2ae9..1e368806 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -756,24 +756,24 @@ class TestScriptHeader:
def test_get_script_header(self):
expected = '#!%s\n' % ei.nt_quote_arg(os.path.normpath(sys.executable))
- actual = ei.ScriptWriter.get_script_header('#!/usr/local/bin/python')
+ actual = ei.ScriptWriter.get_header('#!/usr/local/bin/python')
assert actual == expected
def test_get_script_header_args(self):
expected = '#!%s -x\n' % ei.nt_quote_arg(
os.path.normpath(sys.executable))
- actual = ei.ScriptWriter.get_script_header('#!/usr/bin/python -x')
+ actual = ei.ScriptWriter.get_header('#!/usr/bin/python -x')
assert actual == expected
def test_get_script_header_non_ascii_exe(self):
- actual = ei.ScriptWriter.get_script_header(
+ actual = ei.ScriptWriter.get_header(
'#!/usr/bin/python',
executable=self.non_ascii_exe)
expected = str('#!%s -x\n') % self.non_ascii_exe
assert actual == expected
def test_get_script_header_exe_with_spaces(self):
- actual = ei.ScriptWriter.get_script_header(
+ actual = ei.ScriptWriter.get_header(
'#!/usr/bin/python',
executable='"' + self.exe_with_spaces + '"')
expected = '#!"%s"\n' % self.exe_with_spaces
@@ -817,7 +817,7 @@ class TestCommandSpec:
class TestWindowsScriptWriter:
def test_header(self):
- hdr = ei.WindowsScriptWriter.get_script_header('')
+ hdr = ei.WindowsScriptWriter.get_header('')
assert hdr.startswith('#!')
assert hdr.endswith('\n')
hdr = hdr.lstrip('#!')