Skip to content

Commit 91c3864

Browse files
author
Paul Monson
committed
code review cleanup
1 parent cfd2cf1 commit 91c3864

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Lib/distutils/tests/test_bdist_wininst.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
@unittest.skipIf(getattr(bdist_wininst, '_unsupported', False),
1010
'bdist_wininst is not supported in this install')
11-
@unittest.skipIf(platform.win32_is_iot(), "These tests don't work on Windows IoT Core or nanoserver")
1211
class BuildWinInstTestCase(support.TempdirManager,
1312
support.LoggingSilencer,
1413
unittest.TestCase):

Modules/_ctypes/callproc.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ static int _call_function_pointer(int flags,
781781
int *space;
782782
ffi_cif cif;
783783
int cc;
784-
#ifdef MS_WIN32
784+
#if defined(MS_WIN32) && !defined(_M_ARM)
785785
int delta;
786786
#ifndef DONT_USE_SEH
787787
DWORD dwExceptionCode = 0;
@@ -831,11 +831,9 @@ static int _call_function_pointer(int flags,
831831
#ifndef DONT_USE_SEH
832832
__try {
833833
#endif
834-
#ifdef _M_ARM
835-
delta = 0;
836-
#else
834+
#ifndef _M_ARM
837835
delta =
838-
#endif // _M_ARM
836+
#endif
839837
#endif
840838
ffi_call(&cif, (void *)pProc, resmem, avalues);
841839
#ifdef MS_WIN32
@@ -875,6 +873,7 @@ static int _call_function_pointer(int flags,
875873
return -1;
876874
}
877875
#else
876+
#ifndef _M_ARM
878877
if (delta < 0) {
879878
if (flags & FUNCFLAG_CDECL)
880879
PyErr_Format(PyExc_ValueError,
@@ -896,6 +895,7 @@ static int _call_function_pointer(int flags,
896895
return -1;
897896
}
898897
#endif
898+
#endif
899899
#endif
900900
if ((flags & FUNCFLAG_PYTHONAPI) && PyErr_Occurred())
901901
return -1;

Tools/winiot/sync_win_iot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def include_in_tools(p):
122122

123123
return p.suffix.lower() in {'.py', '.pyw', '.txt'}
124124

125-
BASE_NAME = 'python{0.major}{0.minor}'.format(sys.version_info)
125+
BASE_NAME = 'python??'
126126

127127
FULL_LAYOUT = [
128128
('/', '$source', 'python.exe', is_not_debug),

0 commit comments

Comments
 (0)