aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-07-14 12:11:49 +0700
committerstepshal <nessento@openmailbox.org>2016-07-14 12:11:49 +0700
commitdc2d1dc249bec8e3a864e2aa6002a8e27adc4b7c (patch)
tree2f1a5c1365313dbe185c598194d2f9cafda7e6ee /setuptools/tests
parent10866a525737842b090d83ccaf6d7aceb092f069 (diff)
downloadexternal_python_setuptools-dc2d1dc249bec8e3a864e2aa6002a8e27adc4b7c.tar.gz
external_python_setuptools-dc2d1dc249bec8e3a864e2aa6002a8e27adc4b7c.tar.bz2
external_python_setuptools-dc2d1dc249bec8e3a864e2aa6002a8e27adc4b7c.zip
Fix missing whitespace around operator.
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_bdist_egg.py4
-rw-r--r--setuptools/tests/test_easy_install.py4
-rw-r--r--setuptools/tests/test_packageindex.py2
3 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/tests/test_bdist_egg.py b/setuptools/tests/test_bdist_egg.py
index a7ceac86..42c44edf 100644
--- a/setuptools/tests/test_bdist_egg.py
+++ b/setuptools/tests/test_bdist_egg.py
@@ -18,9 +18,9 @@ setup(name='foo', py_modules=['hi'])
@pytest.yield_fixture
def setup_context(tmpdir):
- with (tmpdir/'setup.py').open('w') as f:
+ with (tmpdir / 'setup.py').open('w') as f:
f.write(SETUP_PY)
- with (tmpdir/'hi.py').open('w') as f:
+ with (tmpdir / 'hi.py').open('w') as f:
f.write('1\n')
with tmpdir.as_cwd():
yield tmpdir
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 894c4fd8..821e6fb2 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -157,7 +157,7 @@ class TestPTHFileWriter:
@pytest.yield_fixture
def setup_context(tmpdir):
- with (tmpdir/'setup.py').open('w') as f:
+ with (tmpdir / 'setup.py').open('w') as f:
f.write(SETUP_PY)
with tmpdir.as_cwd():
yield tmpdir
@@ -555,7 +555,7 @@ class TestScriptHeader:
assert actual == expected
actual = ei.ScriptWriter.get_script_header('#!/usr/bin/python',
- executable='"'+self.exe_with_spaces+'"')
+ executable='"' + self.exe_with_spaces + '"')
expected = '#!"%s"\n' % self.exe_with_spaces
assert actual == expected
diff --git a/setuptools/tests/test_packageindex.py b/setuptools/tests/test_packageindex.py
index 61f5909b..dda55382 100644
--- a/setuptools/tests/test_packageindex.py
+++ b/setuptools/tests/test_packageindex.py
@@ -129,7 +129,7 @@ class TestPackageIndex:
# the distribution has been found
assert 'foobar' in pi
# we have only one link, because links are compared without md5
- assert len(pi['foobar'])==1
+ assert len(pi['foobar']) == 1
# the link should be from the index
assert 'correct_md5' in pi['foobar'][0].location