Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
f7e4a57a
Commit
f7e4a57a
authored
Sep 24, 2017
by
xoviat
Committed by
GitHub
Sep 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nit: fix spelling error and re-use contextmanager
parent
80a820fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
setuptools/tests/test_pep517.py
setuptools/tests/test_pep517.py
+4
-3
No files found.
setuptools/tests/test_pep517.py
View file @
f7e4a57a
...
...
@@ -41,7 +41,7 @@ class BuildBackend(BuildBackendBase):
class
BuildBackendCaller
(
BuildBackendBase
):
def
__call__
(
self
,
name
,
*
args
,
**
kw
):
"""Handles aribrary function invo
k
ations on the build backend."""
"""Handles aribrary function invo
c
ations 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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment