Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/test/test_oodict.py   plexnet(Download)
import py
from pypy.rpython.test.test_llinterp import interpret 
from pypy.rpython.ootypesystem.ootype import Signed, Float, Dict, new, typeOf, setDictTypes
 
def test_new():
    assert DT2 != DT
    py.test.raises(TypeError, hash, DT)
    setDictTypes(DT, Signed, Float)
    assert DT == DT2
    assert DT2 == DT
    assert hash(DT) == hash(DT2)
 
def test_recursive_str_hash():
    DT = Dict()
    setDictTypes(DT, Signed, DT)

src/s/y/Sypy-HEAD/rpython/ootypesystem/test/test_oodict.py   Sypy(Download)
import py
from pypy.rpython.test.test_llinterp import interpret 
from pypy.rpython.ootypesystem.ootype import Signed, Float, Dict, new, typeOf, setDictTypes
 
def test_new():
    assert DT2 != DT
    py.test.raises(TypeError, hash, DT)
    setDictTypes(DT, Signed, Float)
    assert DT == DT2
    assert DT2 == DT
    assert hash(DT) == hash(DT2)
 
def test_recursive_str_hash():
    DT = Dict()
    setDictTypes(DT, Signed, DT)