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

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

src/b/i/biopython-1.63/Tests/test_bgzf.py   biopython(Download)
    def test_write_tell(self):
        """Check offset works during BGZF writing"""
        temp_file = self.temp_file
 
        h = bgzf.open(temp_file, "w") #Text mode!
        h.close()
 
        h = bgzf.open(temp_file, "r") #Text mode!
 
        h.seek(offset) #i.e. End of first BGZF block

src/b/i/biopython-HEAD/Tests/test_bgzf.py   biopython(Download)
    def test_write_tell(self):
        """Check offset works during BGZF writing"""
        temp_file = self.temp_file
 
        h = bgzf.open(temp_file, "w") #Text mode!
        h.close()
 
        h = bgzf.open(temp_file, "r") #Text mode!
 
        h.seek(offset) #i.e. End of first BGZF block