summaryrefslogtreecommitdiff
path: root/tests/test_basic.py
diff options
context:
space:
mode:
authorAlexandre Conrad <alexandre.conrad@gmail.com>2010-04-17 18:35:22 +0200
committerAlexandre Conrad <alexandre.conrad@gmail.com>2010-04-17 18:35:22 +0200
commitda1870b2aaa6131ce8bf2da013aece3c9da3a233 (patch)
tree1a0845731d65f52069a965d1e2b9fb0a78fc8567 /tests/test_basic.py
parentd4ab186a8d263ef22225996946529359637c7553 (diff)
parent627c3e7242c0ceaa2ed892d990dbf174e046b5a9 (diff)
downloadpip-da1870b2aaa6131ce8bf2da013aece3c9da3a233.tar.gz
merge
Diffstat (limited to 'tests/test_basic.py')
-rw-r--r--tests/test_basic.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test_basic.py b/tests/test_basic.py
index 8e350a768..291eaec33 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -1,4 +1,4 @@
-from os.path import abspath, join, dirname, curdir, pardir
+from os.path import abspath, exists, join, dirname, curdir, pardir
from test_pip import here, reset_env, run_pip, pyversion, lib_py, mkdir
def test_correct_pip_version():
@@ -253,3 +253,14 @@ def test_install_pardir():
result = run_pip('install', pardir, cwd=run_from, expect_error=False)
assert (lib_py + 'site-packages/fspkg') in result.files_created, str(result.stdout)
assert (lib_py + 'site-packages/FSPkg-0.1dev-py%s.egg-info' % pyversion) in result.files_created, str(result)
+
+def test_cleanup():
+ """
+ Test clean up of build directory after an install.
+
+ """
+ reset_env()
+ # FIXME: We may want to test more scenarios
+ result = run_pip('install', 'INITools==dev', expect_error=False)
+ build = join(here, "test-scratch", "build")
+ assert not exists(build), "build dir still exists: %s" % build