[pypy-svn] r20539 - pypy/branch/somepbc-refactoring/pypy/translator/c/test
arigo at codespeak.net
arigo at codespeak.net
Thu Dec 1 22:49:26 CET 2005
Author: arigo
Date: Thu Dec 1 22:49:25 2005
New Revision: 20539
Modified:
pypy/branch/somepbc-refactoring/pypy/translator/c/test/test_annotated.py
Log:
(pedronis, arigo)
Removed this hack, which is apparently not needed any more
and breaks the pyrex tests *if* they are run after the C
tests in the same process. Duh.
Modified: pypy/branch/somepbc-refactoring/pypy/translator/c/test/test_annotated.py
==============================================================================
--- pypy/branch/somepbc-refactoring/pypy/translator/c/test/test_annotated.py (original)
+++ pypy/branch/somepbc-refactoring/pypy/translator/c/test/test_annotated.py Thu Dec 1 22:49:25 2005
@@ -13,18 +13,13 @@
def annotatefunc(self, func):
t = TranslationContext(simplifying=True)
- if hasattr(func, 'starting_types'):
- argstypelist = func.starting_types
- else:
- # builds starting-types from func_defs
- argstypelist = []
- if func.func_defaults:
- for spec in func.func_defaults:
- if isinstance(spec, tuple):
- spec = spec[0] # use the first type only for the tests
- argstypelist.append(spec)
- func.func_defaults = None
- func.starting_types = argstypelist
+ # builds starting-types from func_defs
+ argstypelist = []
+ if func.func_defaults:
+ for spec in func.func_defaults:
+ if isinstance(spec, tuple):
+ spec = spec[0] # use the first type only for the tests
+ argstypelist.append(spec)
a = t.buildannotator()
a.build_types(func, argstypelist)
a.simplify()
More information about the Pypy-commit
mailing list