Mark bdist_wininst unsupported to skip the tests

See also https://src.fedoraproject.org/rpms/python3/pull-request/74
This commit is contained in:
Miro Hrončok 2018-12-20 12:46:25 +01:00
parent 0e0fe4ff87
commit 15d5b5cfc5
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py
index 0871a4f..8796b68 100644
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -12,6 +12,8 @@ from distutils.sysconfig import get_python_version
from distutils import log
class bdist_wininst(Command):
+ # Marker for tests that we have the unsupported bdist_wininst
+ _unsupported = True
description = "create an executable installer for MS Windows"

View File

@ -319,6 +319,11 @@ Patch313: 00313-cprofile-sort-option.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1652843 # https://bugzilla.redhat.com/show_bug.cgi?id=1652843
Patch315: 00315-test_email-mktime.patch Patch315: 00315-test_email-mktime.patch
# 00316 #
# We remove the exe files from distutil's bdist_wininst
# So we mark the command as unsupported - and the tests are skipped
Patch316: 00316-mark-bdist_wininst-unsupported.patch
# (New patches go here ^^^) # (New patches go here ^^^)
# #
# When adding new patches to "python" and "python3" in Fedora, EL, etc., # When adding new patches to "python" and "python3" in Fedora, EL, etc.,
@ -656,6 +661,7 @@ rm Lib/ensurepip/_bundled/*.whl
%patch312 -p1 %patch312 -p1
%patch313 -p1 %patch313 -p1
%patch315 -p1 %patch315 -p1
%patch316 -p1
# Remove files that should be generated by the build # Remove files that should be generated by the build