aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxoviat <xoviat@users.noreply.github.com>2017-09-24 18:51:52 -0500
committerGitHub <noreply@github.com>2017-09-24 18:51:52 -0500
commitf7e4a57aad94d1ca2408729d9c6df7419dbac909 (patch)
treea806eaee44253fcd4a572f4cb59577f37a50802c
parent80a820fe98ad6a687828c3e129412f33417498c5 (diff)
downloadexternal_python_setuptools-f7e4a57aad94d1ca2408729d9c6df7419dbac909.tar.gz
external_python_setuptools-f7e4a57aad94d1ca2408729d9c6df7419dbac909.tar.bz2
external_python_setuptools-f7e4a57aad94d1ca2408729d9c6df7419dbac909.zip
nit: fix spelling error and re-use contextmanager
-rw-r--r--setuptools/tests/test_pep517.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/setuptools/tests/test_pep517.py b/setuptools/tests/test_pep517.py
index da228770..ea149f73 100644
--- a/setuptools/tests/test_pep517.py
+++ b/setuptools/tests/test_pep517.py
@@ -41,7 +41,7 @@ class BuildBackend(BuildBackendBase):
class BuildBackendCaller(BuildBackendBase):
def __call__(self, name, *args, **kw):
- """Handles aribrary function invokations on the build backend."""
+ """Handles aribrary function invocations on the build backend."""
os.chdir(self.cwd)
os.environ.update(self.env)
return getattr(import_module(self.backend_name), name)(*args, **kw)
@@ -58,7 +58,8 @@ def enter_directory(dir, val=None):
@pytest.fixture
def build_backend():
tmpdir = mkdtemp()
- with enter_directory(tmpdir):
+ ctx = enter_directory(tmpdir, BuildBackend(cwd='.'))
+ with ctx:
setup_script = DALS("""
from setuptools import setup
@@ -79,7 +80,7 @@ def build_backend():
""")
})
- return enter_directory(tmpdir, BuildBackend(cwd='.'))
+ return ctx
def test_get_requires_for_build_wheel(build_backend):