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
14ea4d14
Commit
14ea4d14
authored
Sep 24, 2017
by
xoviat
Committed by
GitHub
Sep 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: pep517: revert changes
parent
d72a5a7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
setuptools/tests/test_pep517.py
setuptools/tests/test_pep517.py
+6
-8
No files found.
setuptools/tests/test_pep517.py
View file @
14ea4d14
...
...
@@ -49,18 +49,16 @@ class BuildBackendCaller(BuildBackendBase):
@
contextmanager
def
enter_directory
(
dir
,
val
=
None
):
while
True
:
original_dir
=
os
.
getcwd
()
os
.
chdir
(
dir
)
yield
val
os
.
chdir
(
original_dir
)
original_dir
=
os
.
getcwd
()
os
.
chdir
(
dir
)
yield
val
os
.
chdir
(
original_dir
)
@
pytest
.
fixture
def
build_backend
():
tmpdir
=
mkdtemp
()
ctx
=
enter_directory
(
tmpdir
,
BuildBackend
(
cwd
=
'.'
))
with
ctx
:
with
enter_directory
(
tmpdir
):
setup_script
=
DALS
(
"""
from setuptools import setup
...
...
@@ -81,7 +79,7 @@ def build_backend():
"""
)
})
return
ctx
return
enter_directory
(
tmpdir
,
BuildBackend
(
cwd
=
'.'
))
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