[pypy-svn] r58956 - pypy/branch/getslice/pypy/rpython/test

arigo at codespeak.net arigo at codespeak.net
Sat Oct 11 12:12:08 CEST 2008


Author: arigo
Date: Sat Oct 11 12:12:05 2008
New Revision: 58956

Modified:
   pypy/branch/getslice/pypy/rpython/test/test_rtyper.py
Log:
(antocuni, arigo)
Remove a test which no longer makes sense.


Modified: pypy/branch/getslice/pypy/rpython/test/test_rtyper.py
==============================================================================
--- pypy/branch/getslice/pypy/rpython/test/test_rtyper.py	(original)
+++ pypy/branch/getslice/pypy/rpython/test/test_rtyper.py	Sat Oct 11 12:12:05 2008
@@ -27,35 +27,6 @@
     key2 = rtyper.makekey(stup2)
     assert key1 != key2
 
-def test_slice_reprkeys():
-    one = annmodel.SomeInteger(nonneg=True)
-    one.const = 1
-    three = annmodel.SomeInteger(nonneg=True)
-    three.const = 3
-    minusone = annmodel.SomeInteger()
-    minusone.const = -1
-    none = annmodel.s_None
-
-    startonly = annmodel.SomeSlice(one, none, none)
-    startonly2 = annmodel.SomeSlice(one, none, one)
-    startonly3 = annmodel.SomeSlice(three, none, one)    
-
-    startstop = annmodel.SomeSlice(one, one, none)
-    startstop2 = annmodel.SomeSlice(one, one, one)
-    startstop3 = annmodel.SomeSlice(one, three, none)
-
-    minusone_slice = annmodel.SomeSlice(none, minusone, none)
-    minusone_slice2 = annmodel.SomeSlice(none, minusone, one)
-
-    assert startonly.rtyper_makekey() == startonly2.rtyper_makekey() == startonly3.rtyper_makekey()
-    assert startstop.rtyper_makekey() == startstop2.rtyper_makekey() == startstop3.rtyper_makekey()
-    assert minusone_slice.rtyper_makekey() == minusone_slice2.rtyper_makekey()
-
-    assert startonly.rtyper_makekey() != startstop.rtyper_makekey()
-    assert startonly.rtyper_makekey() != minusone_slice.rtyper_makekey()
-    assert minusone_slice.rtyper_makekey() != startstop.rtyper_makekey()
-    
-
 def test_simple():
     def dummyfn(x):
         return x+1



More information about the Pypy-commit mailing list