Author: Armin Rigo <[email protected]>
Branch:
Changeset: r44887:8c2c5b0b41ed
Date: 2011-06-11 17:58 +0200
http://bitbucket.org/pypy/pypy/changeset/8c2c5b0b41ed/
Log: Fix, indirectly for translator.c.test.test_lladdresses
diff --git a/pypy/tool/gcc_cache.py b/pypy/tool/gcc_cache.py
--- a/pypy/tool/gcc_cache.py
+++ b/pypy/tool/gcc_cache.py
@@ -44,7 +44,11 @@
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit