[pypy-svn] r27760 - in pypy/dist/pypy/translator/cli: src test

antocuni at codespeak.net antocuni at codespeak.net
Sat May 27 13:37:54 CEST 2006


Author: antocuni
Date: Sat May 27 13:37:44 2006
New Revision: 27760

Modified:
   pypy/dist/pypy/translator/cli/src/pypylib.cs
   pypy/dist/pypy/translator/cli/test/runtest.py
Log:
Some little bugs fixed.



Modified: pypy/dist/pypy/translator/cli/src/pypylib.cs
==============================================================================
--- pypy/dist/pypy/translator/cli/src/pypylib.cs	(original)
+++ pypy/dist/pypy/translator/cli/src/pypylib.cs	Sat May 27 13:37:44 2006
@@ -9,6 +9,8 @@
         public static string ToPython(bool x)   { return x.ToString(); }
         public static string ToPython(double x) { return x.ToString(); }
         public static string ToPython(char x)   { return string.Format("'{0}'", x); }
+        public static string ToPython(uint x)   { return x.ToString(); }
+        public static string ToPython(long x)   { return x.ToString(); }
 
         public static string ToPython(object obj) 
         { 

Modified: pypy/dist/pypy/translator/cli/test/runtest.py
==============================================================================
--- pypy/dist/pypy/translator/cli/test/runtest.py	(original)
+++ pypy/dist/pypy/translator/cli/test/runtest.py	Sat May 27 13:37:44 2006
@@ -136,7 +136,11 @@
 
         t.buildrtyper(type_system="ootype").specialize()
         self.graph = t.graphs[0]
-        raiseKeyError_graph = t.graphs[1]
+
+        # XXX: horrible hack :-(
+        for graph in t.graphs:
+            if graph.name == 'raiseKeyError':
+                raiseKeyError_graph = graph
 
         if getoption('view'):
            t.view()



More information about the Pypy-commit mailing list