[pypy-svn] r18188 - pypy/dist/pypy/translator/llvm/test

ericvrp at codespeak.net ericvrp at codespeak.net
Wed Oct 5 12:04:59 CEST 2005


Author: ericvrp
Date: Wed Oct  5 12:04:58 2005
New Revision: 18188

Modified:
   pypy/dist/pypy/translator/llvm/test/test_exception.py
Log:
Fix name of two tests that used to have the same name 


Modified: pypy/dist/pypy/translator/llvm/test/test_exception.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/test_exception.py	(original)
+++ pypy/dist/pypy/translator/llvm/test/test_exception.py	Wed Oct  5 12:04:58 2005
@@ -134,7 +134,7 @@
     for i in range(10, 20):
         assert f(i) == fn(i)
 
-def test_two_exceptions():
+def test_two_exceptionsA():
     def fn(n):
         lst = range(10)
         try:
@@ -194,12 +194,12 @@
     for i in [-1, 0, 1, 2]:
         assert f(i) == i
 
-def test_two_exceptions():
+def test_two_exceptionsB():
     def fn1():
         raise Exception
     def fn2():
         return 10
-    def two_exceptions():
+    def two_exceptionsB():
         r = 50
         try:
             fn1()
@@ -212,8 +212,8 @@
             r += 300
         r += fn2()
         return r
-    f = compile_function(two_exceptions, [])
-    assert f() == two_exceptions()
+    f = compile_function(two_exceptionsB, [])
+    assert f() == two_exceptionsB()
             
 def test_raise_outside_testfn():
     def raiser(n):



More information about the Pypy-commit mailing list