Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/b/t/BTrees-4.0.8/BTrees/tests/test_OIBTree.py   BTrees(Download)
    def _stringraises(self):
        self._makeOne()[1] = 'c'
 
    def _floatraises(self):
        self._makeOne()[1] = 1.4
 
    def _noneraises(self):
        self._makeOne()[1] = None
    def testEmptyFirstBucketReportedByGuido(self):
        from .._compat import xrange
        b = self._makeOne()
        for i in xrange(29972): # reduce to 29971 and it works
            b[i] = i

src/b/t/BTrees-4.0.8/BTrees/tests/test_IOBTree.py   BTrees(Download)
    def _stringraises(self):
        self._makeOne()['c'] = 1
 
    def _floatraises(self):
        self._makeOne()[2.5] = 1
 
    def _noneraises(self):
        self._makeOne()[None] = 1