Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3.5
Changeset: r90909:80199bfe76d1
Date: 2017-04-01 22:56 +0200
http://bitbucket.org/pypy/pypy/changeset/80199bfe76d1/
Log: Let set_wakeup_fd translate (and fail) on Windows
diff --git a/pypy/module/signal/interp_signal.py
b/pypy/module/signal/interp_signal.py
--- a/pypy/module/signal/interp_signal.py
+++ b/pypy/module/signal/interp_signal.py
@@ -253,6 +253,11 @@
raise oefmt(space.w_ValueError,
"set_wakeup_fd only works in main thread or with "
"__pypy__.thread.enable_signals()")
+
+ if WIN32:
+ raise oefmt(space.w_NotImplementedError,
+ "signal.set_wakeup_fd is not implemented on Windows")
+
if fd != -1:
if not rposix.is_valid_fd(fd):
raise oefmt(space.w_ValueError, "invalid fd")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit