Source

pypy-effect-analysis / pypy / tool / test / test_version.py

1
2
3
4
5
6
7
8
9
import os, sys
import py
from pypy.tool.version import get_mercurial_info

def test_get_mercurial_info():
    assert get_mercurial_info(py.path.local.sysfind(
        'completely broken mercurial'))
    assert get_mercurial_info(os.devnull)
    assert get_mercurial_info(sys.executable)