File: test_pickle.py

package info (click to toggle)
pyranges 0.0.111%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,992 kB
  • sloc: python: 5,546; makefile: 37; sh: 6
file content (7 lines) | stat: -rw-r--r-- 157 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
import pyranges as pr
import pickle

def test_pickle():
    gr = pr.data.f1()
    pickle.dump(gr, open("hi", "wb+"))
    gr2 = pickle.load(open("hi", "rb"))