[pypy-svn] r13945 - pypy/dist/pypy/translator/test

hpk at codespeak.net hpk at codespeak.net
Sun Jun 26 15:05:59 CEST 2005


Author: hpk
Date: Sun Jun 26 15:05:58 2005
New Revision: 13945

Modified:
   pypy/dist/pypy/translator/test/test_annrpython.py
Log:
fix a few tests to use proper number of arguments
(discovered by more strict arg-num checking) 



Modified: pypy/dist/pypy/translator/test/test_annrpython.py
==============================================================================
--- pypy/dist/pypy/translator/test/test_annrpython.py	(original)
+++ pypy/dist/pypy/translator/test/test_annrpython.py	Sun Jun 26 15:05:58 2005
@@ -582,13 +582,13 @@
 
     def test_flow_rev_numbers(self):
         a = self.RPythonAnnotator()
-        s = a.build_types(snippet.flow_rev_numbers, [])
+        s = a.build_types(snippet.flow_rev_numbers, [int])
         assert s.knowntype == int
         assert not s.is_constant() # !
 
     def test_methodcall_is_precise(self):
         a = self.RPythonAnnotator()
-        s = a.build_types(snippet.methodcall_is_precise, [])
+        s = a.build_types(snippet.methodcall_is_precise, [bool])
         classes = a.bookkeeper.userclasses
         assert 'x' not in classes[snippet.CBase].attrs
         assert (classes[snippet.CSub1].attrs['x'].s_value ==
@@ -637,7 +637,7 @@
         def assert_(x):
             assert x,"XXX"
         a = self.RPythonAnnotator()
-        s = a.build_types(assert_, [])
+        s = a.build_types(assert_, [int])
         assert s.const is None
 
     def test_string_and_none(self):



More information about the Pypy-commit mailing list