<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, May 10, 2015 at 9:07 PM, Carol Willing <span dir="ltr"><<a href="mailto:willingc@willingconsulting.com" target="_blank">willingc@willingconsulting.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br><div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<div>On 5/10/15 10:29 AM, Tal Einat wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Sun, May 10, 2015 at 5:07 PM,
Brett Cannon <span dir="ltr"><<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><br>
<br>
<div class="gmail_quote"><span>On Sun, May 10,
2015 at 10:04 AM Skip Montanaro <<a href="mailto:skip.montanaro@gmail.com" target="_blank">skip.montanaro@gmail.com</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">I haven't run the test suite in
awhile. I am in the midst of running it on my
Mac running Yosemite 10.10.3. Twice now, I've
gotten this popup:
<div><br>
</div>
<div><img style="max-width: 100%;" src="cid:part3.03010801.01010606@willingconsulting.com"><br>
<br>
</div>
<div>I assume this is testing some server
listening on localhost. Is this a new thing,
either with the Python test suite or with Mac
OS X? (I'd normally be hidden behind a NAT
firewall, but at the moment I am on a
miserable public connection in a Peet's
Coffee, so it takes on slightly more
importance...)</div>
</div>
</blockquote>
<div><br>
</div>
</span>
<div>It's not new.</div>
</div>
</div>
</blockquote>
<div> <br>
</div>
<div>Indeed, I've run into this as well.<br>
</div>
<div> <br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_quote"><span>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div><br>
</div>
<div>I've also seen the Crash Reporter pop up
many times, but as far as I could tell, in all
cases the test suite output told me it was
expected. Perhaps tests which listen for
network connections should also mention that,
at least on Macs?</div>
</div>
</blockquote>
<div><br>
</div>
</span>
<div>Wouldn't hurt. Just requires tracking down which
test(s) triggers it (might be more than one and I
don't know if answering that popup applies for the
rest of the test execution or once per test if you
use -j). <br>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>If anyone starts working on this, let me know if I can
help, e.g. trying things on my own Mac.<br>
<br>
</div>
</div>
</div>
</div>
</blockquote></div></div>
I believe that the message has to do with OS X's sandboxing
implementation and the setting of the sandbox's entitlement keys.
Here's an Apple doc:
<a href="https://developer.apple.com/library/ios/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW9" target="_blank">https://developer.apple.com/library/ios/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW9</a><br>
<br>
I'm unaware of a way to work around this other than using Apple's
code signing or adjusting target build settings in XCode :( If
anyone knows a good way to workaround or manually set permission
(other than clicking the Allow button), I would be interested.<br></div></blockquote><div><br></div><div>I was reading about this a few weeks ago an recall finding a way to ad-hoc sign the built python executable. Here's a link below. I haven't tried this, though, and don't know if it would work with a python executable rather than a proper OSX app. If it does work, it would be useful to add this as a tool and/or mention it in the developer docs.<br><br><a href="http://apple.stackexchange.com/a/121010">http://apple.stackexchange.com/a/121010</a><br><br></div><div>- Tal Einat<br></div></div></div></div>