1. Pypy
  2. Untitled project
  3. pypy

Commits

Brian Kearns  committed 90f4876

sanity check on platform when swallowing this exception

  • Participants
  • Parent commits f2d5c5b
  • Branches default

Comments (0)

Files changed (1)

File rpython/rlib/rwin32.py

View file
         cfile.write(r'''
                 #include <errno.h>
                 #include <WinError.h>
-                #include  <stdio.h>
+                #include <stdio.h>
                 #ifdef __GNUC__
                 #define _dosmaperr mingw_dosmaperr
                 #endif
                 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,