Skip to content

Commit f574a7e

Browse files
authored
Bypass _scproxy import on macOS (#1051)
1 parent 160c2a6 commit f574a7e

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

Src/IronPythonTest/Cases/CPythonCasesManifest.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,6 @@ Ignore=true
507507
Ignore=true
508508
Reason=TypeError: __next__() takes exactly 1 argument (1 given)
509509

510-
[CPython.test_http_cookiejar]
511-
RunCondition=NOT $(IS_DEBUG) AND NOT $(IS_OSX)
512-
Reason=Raises an assertion error in Debug / ImportError: No module named _scproxy (on macOS)
513-
514510
[CPython.test_httplib]
515511
Ignore=true
516512
Reason=Blocking

Src/StdLib/Lib/urllib/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,7 @@ def ip2num(ipAddr):
24292429
return False
24302430

24312431

2432-
if sys.platform == 'darwin':
2432+
if sys.platform == 'darwin' and sys.implementation.name != "ironpython": # https://github.com/IronLanguages/ironpython3/issues/1050
24332433
from _scproxy import _get_proxy_settings, _get_proxies
24342434

24352435
def proxy_bypass_macosx_sysconf(host):

0 commit comments

Comments
 (0)