[pypy-svn] pypy default: Add a minimal test; this module would not even import...
amauryfa
commits-noreply at bitbucket.org
Tue Apr 19 15:32:54 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r43485:1615dfd7d8f1
Date: 2011-04-19 13:50 +0200
http://bitbucket.org/pypy/pypy/changeset/1615dfd7d8f1/
Log: Add a minimal test; this module would not even import...
diff --git a/pypy/module/_demo/demo.py b/pypy/module/_demo/demo.py
--- a/pypy/module/_demo/demo.py
+++ b/pypy/module/_demo/demo.py
@@ -10,7 +10,7 @@
time_t = rffi_platform.getsimpletype('time_t', '#include <time.h>', rffi.LONG)
eci = ExternalCompilationInfo(includes=['time.h'])
-time = rffi.llexternal('time', [int], time_t,
+time = rffi.llexternal('time', [lltype.Signed], time_t,
compilation_info=eci)
def get(space, name):
diff --git a/pypy/module/_demo/test/test_import.py b/pypy/module/_demo/test/test_import.py
--- a/pypy/module/_demo/test/test_import.py
+++ b/pypy/module/_demo/test/test_import.py
@@ -26,3 +26,5 @@
w_demo = space.call(w_import,
space.newlist([space.wrap('_demo')]))
assert _demo.Module.demo_events == ['setup', 'startup']
+
+ assert space.getattr(w_demo, space.wrap('measuretime'))
More information about the Pypy-commit
mailing list