Author: Brian Kearns <[email protected]>
Branch:
Changeset: r70067:90f48765ab97
Date: 2014-03-18 15:21 -0700
http://bitbucket.org/pypy/pypy/changeset/90f48765ab97/
Log: sanity check on platform when swallowing this exception
diff --git a/rpython/rlib/rwin32.py b/rpython/rlib/rwin32.py
--- a/rpython/rlib/rwin32.py
+++ b/rpython/rlib/rwin32.py
@@ -170,7 +170,7 @@
cfile.write(r'''
#include <errno.h>
#include <WinError.h>
- #include <stdio.h>
+ #include <stdio.h>
#ifdef __GNUC__
#define _dosmaperr mingw_dosmaperr
#endif
@@ -197,6 +197,7 @@
standalone=True)
except (CompilationError, WindowsError):
# Fallback for the mingw32 compiler
+ assert static_platform.name == 'mingw32'
errors = {
2: 2, 3: 2, 4: 24, 5: 13, 6: 9, 7: 12, 8: 12, 9: 12, 10: 7,
11: 8, 15: 2, 16: 13, 17: 18, 18: 2, 19: 13, 20: 13, 21: 13,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit