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
a85a6384
Commit
a85a6384
authored
Aug 08, 2019
by
Pablo Galindo
Committed by
GitHub
Aug 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-37795: Capture DeprecationWarnings in the test suite (GH-15184)
parent
cab8dd1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tests/test_bdist.py
tests/test_bdist.py
+5
-1
No files found.
tests/test_bdist.py
View file @
a85a6384
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
os
import
os
import
unittest
import
unittest
from
test.support
import
run_unittest
from
test.support
import
run_unittest
import
warnings
from
distutils.command.bdist
import
bdist
from
distutils.command.bdist
import
bdist
from
distutils.tests
import
support
from
distutils.tests
import
support
...
@@ -38,7 +39,10 @@ class BuildTestCase(support.TempdirManager,
...
@@ -38,7 +39,10 @@ class BuildTestCase(support.TempdirManager,
names
.
append
(
'bdist_msi'
)
names
.
append
(
'bdist_msi'
)
for
name
in
names
:
for
name
in
names
:
subcmd
=
cmd
.
get_finalized_command
(
name
)
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
'ignore'
,
'bdist_wininst command is deprecated'
,
DeprecationWarning
)
subcmd
=
cmd
.
get_finalized_command
(
name
)
if
getattr
(
subcmd
,
'_unsupported'
,
False
):
if
getattr
(
subcmd
,
'_unsupported'
,
False
):
# command is not supported on this build
# command is not supported on this build
continue
continue
...
...
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