Commit ec120d0f authored by Kevin Modzelewski's avatar Kevin Modzelewski

Get basic_test.c working

parent cc5974c9
...@@ -46,4 +46,8 @@ initbasic_test(void) ...@@ -46,4 +46,8 @@ initbasic_test(void)
m = Py_InitModule("basic_test", TestMethods); m = Py_InitModule("basic_test", TestMethods);
if (m == NULL) if (m == NULL)
return; return;
#ifdef PYSTON_VERSION
PyGC_RegisterStaticConstantLocation(&stored);
#endif
} }
# expected: reffail
import basic_test import basic_test
print type(basic_test) print type(basic_test)
...@@ -19,5 +18,4 @@ class C(object): ...@@ -19,5 +18,4 @@ class C(object):
for i in xrange(100000): for i in xrange(100000):
C() C()
print "This will break"
print basic_test.load() print basic_test.load()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment