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

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

src/b/i/biopython-HEAD/Tests/test_bgzf.py   biopython(Download)
        old_line = h.readline()
        old = old_line + h.read()
        h.close()
 
        h = bgzf.BgzfReader(new_file, "r")  # Text mode!
        new_line = h.readline()
        new = new_line + h.read(len(old))
        h.close()
            else:
                old = _as_string(old)
            h.close()
 
            for cache in [1, 10]:
                else:
                    new = "".join(line for line in h)
                h.close()
 
                self.assertEqual(len(old), len(new))
            else:
                old = _as_string(old)
            h.close()
 
            for cache in [1, 10]:

src/b/i/biopython-1.63/Tests/test_bgzf.py   biopython(Download)
    def check_text(self, old_file, new_file):
        h = open(old_file)  # text mode!
        old_line = h.readline()
        old = old_line + h.read()
        h.close()
 
        h = bgzf.BgzfReader(new_file, "r")  # Text mode!
        new_line = h.readline()
        new = new_line + h.read(len(old))
        h.close()
            else:
                old = _as_string(old)
            h.close()
 
            for cache in [1, 10]:
                else:
                    new = "".join(line for line in h)
                h.close()
 
                self.assertEqual(len(old), len(new))
            else:
                old = _as_string(old)
            h.close()
 
            for cache in [1, 10]: