@pytest.mark.network
def test_cleanup_after_install_editable_from_hg(script, tmpdir):
 script.pip('install', '-e', ('%s#egg=ScriptTest' % local_checkout('hg+https://bitbucket.org/ianb/scripttest', tmpdir.join('cache'))), expect_error=True)
 build = (script.venv_path / 'build')
 src = (script.venv_path / 'src')
 assert (not exists(build)), ('build/ dir still exists: %s' % build)
 assert exists(src), ("expected src/ dir doesn't exist: %s" % src)
 script.assert_no_temp()

@ pytest . mark . network def test_cleanup_after_install_editable_from_hg ( script , tmpdir ) : script . pip ( 'install' , '-e' , ( '%s#egg=ScriptTest' % local_checkout ( 'hg+https://bitbucket.org/ianb/scripttest' , tmpdir . join ( 'cache' ) ) ) , expect_error = True ) build = ( script . venv_path / 'build' ) src = ( script . venv_path / 'src' ) assert ( not exists ( build ) ) , ( 'build/ dir still exists: %s' % build ) assert exists ( src ) , ( "expected src/ dir doesn't exist: %s" % src ) script . assert_no_temp ( )
test clean up after cloning from mercurial .