mirror of https://github.com/pypa/pip
Merge pull request #9388 from hugovk/the-future-is-now
This commit is contained in:
commit
f01d60c3e3
|
@ -17,7 +17,6 @@ def run_with_build_env(script, setup_script_contents,
|
||||||
build_env_script.write_text(
|
build_env_script.write_text(
|
||||||
dedent(
|
dedent(
|
||||||
'''
|
'''
|
||||||
from __future__ import print_function
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -161,8 +160,6 @@ def test_build_env_overlay_prefix_has_priority(script):
|
||||||
'installing pkg==4.3 in normal')
|
'installing pkg==4.3 in normal')
|
||||||
''',
|
''',
|
||||||
'''
|
'''
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
print(__import__('pkg').__version__)
|
print(__import__('pkg').__version__)
|
||||||
''')
|
''')
|
||||||
assert result.stdout.strip() == '2.0', str(result)
|
assert result.stdout.strip() == '2.0', str(result)
|
||||||
|
@ -195,7 +192,6 @@ def test_build_env_isolation(script):
|
||||||
run_with_build_env(
|
run_with_build_env(
|
||||||
script, '',
|
script, '',
|
||||||
r'''
|
r'''
|
||||||
from __future__ import print_function
|
|
||||||
from distutils.sysconfig import get_python_lib
|
from distutils.sysconfig import get_python_lib
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in New Issue