Skip to content
This repository was archived by the owner on Aug 2, 2019. It is now read-only.

Commit bfa0dac

Browse files
committed
Add a minimal test; this module would not even import...
1 parent 14f5139 commit bfa0dac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pypy/module/_demo/demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
time_t = rffi_platform.getsimpletype('time_t', '#include <time.h>', rffi.LONG)
1111

1212
eci = ExternalCompilationInfo(includes=['time.h'])
13-
time = rffi.llexternal('time', [int], time_t,
13+
time = rffi.llexternal('time', [lltype.Signed], time_t,
1414
compilation_info=eci)
1515

1616
def get(space, name):

pypy/module/_demo/test/test_import.py

+2
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ def test_startup(self):
2626
w_demo = space.call(w_import,
2727
space.newlist([space.wrap('_demo')]))
2828
assert _demo.Module.demo_events == ['setup', 'startup']
29+
30+
assert space.getattr(w_demo, space.wrap('measuretime'))

0 commit comments

Comments
 (0)