1. Ilya Osadchiy
  2. pypy

Commits

Armin Rigo  committed 8c2c5b0

Fix, indirectly for translator.c.test.test_lladdresses

  • Participants
  • Parent commits 0e02f73
  • Branches default

Comments (0)

Files changed (1)

File pypy/tool/gcc_cache.py

View file
                 platform.log_errors = False
                 platform.compile(c_files, eci)
             finally:
-                platform.log_errors = _previous
+                del platform.log_errors
+                # ^^^remove from the instance --- needed so that it can
+                # compare equal to another instance without it
+                if platform.log_errors != _previous:
+                    platform.log_errors = _previous
             data = 'True'
             path.write(data)
         except CompilationError, e: