Author: Ronan Lamy <[email protected]>
Branch: exctrans
Changeset: r81555:0c774b365d18
Date: 2016-01-03 17:06 +0100
http://bitbucket.org/pypy/pypy/changeset/0c774b365d18/
Log: fix database tests
diff --git a/rpython/translator/c/node.py b/rpython/translator/c/node.py
--- a/rpython/translator/c/node.py
+++ b/rpython/translator/c/node.py
@@ -659,7 +659,8 @@
return lines
def gcstructnode_factory(db, T, obj):
- if db.gctransformer.get_prebuilt_hash(obj) is not None:
+ if (db.gctransformer and
+ db.gctransformer.get_prebuilt_hash(obj) is not None):
cls = GcStructNodeWithHash
else:
cls = StructNode
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit