Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_version():
vcall = sp.Popen(
['snakeviz', '--version'], stdout=sp.PIPE, stderr=sp.PIPE)
out, err = vcall.communicate()
# in Python <= 3.3 this comes out on stderr, otherwise on stdout
assert version.version in out.decode('utf-8') or \
version.version in err.decode('utf-8')