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
77aefc12
Commit
77aefc12
authored
Jan 18, 2021
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore test_build_sdist_relative_path_import to its former simple implementation.
parent
daf01571
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
setuptools/tests/test_build_meta.py
setuptools/tests/test_build_meta.py
+6
-6
No files found.
setuptools/tests/test_build_meta.py
View file @
77aefc12
...
...
@@ -125,8 +125,8 @@ defns = [
class
TestBuildMetaBackend
:
backend_name
=
'setuptools.build_meta'
def
get_build_backend
(
self
,
**
kwargs
):
return
BuildBackend
(
backend_name
=
self
.
backend_name
,
**
kwargs
)
def
get_build_backend
(
self
):
return
BuildBackend
(
backend_name
=
self
.
backend_name
)
@
pytest
.
fixture
(
params
=
defns
)
def
build_backend
(
self
,
tmpdir
,
request
):
...
...
@@ -334,11 +334,11 @@ class TestBuildMetaBackend:
"""
)
}
def
test_build_sdist_relative_path_import
(
self
,
tmp
_path
):
build_files
(
self
.
_relative_path_import_files
,
prefix
=
str
(
tmp_path
)
)
build_backend
=
self
.
get_build_backend
(
cwd
=
tmp_path
)
def
test_build_sdist_relative_path_import
(
self
,
tmp
dir_cwd
):
build_files
(
self
.
_relative_path_import_files
)
build_backend
=
self
.
get_build_backend
()
with
pytest
.
raises
(
ImportError
,
match
=
"^No module named 'hello'$"
):
build_backend
.
build_sdist
(
tmp_path
/
"temp"
)
build_backend
.
build_sdist
(
"temp"
)
@
pytest
.
mark
.
parametrize
(
'setup_literal, requirements'
,
[
(
"'foo'"
,
[
'foo'
]),
...
...
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