Skip to content

Commit a8d691d

Browse files
committed
Tweaks to improve 3.11 build.
1 parent ebb8046 commit a8d691d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ $$(PYTHON_XCFRAMEWORK-$(os)): $$(foreach sdk,$$(SDKS-$(os)),$$(PYTHON_FATLIB-$$(
834834
cp -f -r $$(PYTHON_DIR-$$(firstword $$(PYTHON_TARGETS-$(os))))/_install/lib/python$(PYTHON_VER) \
835835
$$(PYTHON_RESOURCES-$(os))
836836

837-
Python-$(os): $$(PYTHON_XCFRAMEWORK-$(os))
837+
Python-$(os): dist/Python-$(PYTHON_VER)-$(os)-support.$(BUILD_NUMBER).tar.gz
838838

839839
###########################################################################
840840
# Build

tests/testbed/src/testbed/ios.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ class PythonAppDelegate(UIResponder):
1212

1313
def test_subprocess():
1414
"Subprocesses should raise exceptions"
15+
import errno
1516
import subprocess
1617

1718
try:
1819
subprocess.call(['uname', '-a'])
1920
raise AssertionError('Subprocesses should not be possible')
20-
except RuntimeError as e:
21-
assert_(str(e) == "Subprocesses are not supported on ios")
21+
except OSError as e:
22+
assert_(e.errno == errno.ENOTSUP)
23+
assert_(str(e) == "[Errno 45] ios does not support processes.")

0 commit comments

Comments
 (0)