Did I find the right examples for you? yes no

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

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rlib/test/test_objectmodel.py   plexnet(Download)
def test_compute_hash():
    from pypy.rlib.objectmodel import _hash_string, _hash_float, _hash_tuple
    assert compute_hash("Hello") == _hash_string("Hello")
    assert compute_hash(7) == 7
    assert compute_hash(-3.5) == _hash_float(-3.5)

src/s/y/Sypy-HEAD/rlib/test/test_objectmodel.py   Sypy(Download)
def test_compute_hash():
    from pypy.rlib.objectmodel import _hash_string, _hash_float, _hash_tuple
    assert compute_hash("Hello") == _hash_string("Hello")
    assert compute_hash(7) == 7
    assert compute_hash(-3.5) == _hash_float(-3.5)