Skip to content

Instantly share code, notes, and snippets.

@jszakmeister
Created January 25, 2015 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jszakmeister/0960bf7b6434de40328f to your computer and use it in GitHub Desktop.
Save jszakmeister/0960bf7b6434de40328f to your computer and use it in GitHub Desktop.
import coverage
inst = coverage.coverage(auto_data=False, branch=True, data_suffix=None,
source=['foo'])
inst.load()
inst.start()
import foo
inst.stop()
inst.combine()
inst.save()
inst = coverage.coverage(auto_data=False, branch=True, data_suffix=None,
source=['foo'])
inst.load()
inst.start()
import foo
inst.stop()
inst.combine()
inst.save()
def foo():
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment