summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2011-05-23 15:35:20 (GMT)
committerTarek Ziade <tarek@ziade.org>2011-05-23 15:35:20 (GMT)
commita1ae533ac9e1535003daeaf8928018ab1e63c51a (patch)
tree8377e3d28fba7c64bf5882a62938c2610755b644
parentd6881701fba738db55e13d92b4f4770ffd5114c9 (diff)
downloadcpython-a1ae533ac9e1535003daeaf8928018ab1e63c51a.zip
cpython-a1ae533ac9e1535003daeaf8928018ab1e63c51a.tar.gz
cpython-a1ae533ac9e1535003daeaf8928018ab1e63c51a.tar.bz2
make sure build_dir.build_lib is synced to the faked build location
-rw-r--r--Lib/packaging/tests/test_command_install_lib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/packaging/tests/test_command_install_lib.py b/Lib/packaging/tests/test_command_install_lib.py
index 99d47dd..96749e3 100644
--- a/Lib/packaging/tests/test_command_install_lib.py
+++ b/Lib/packaging/tests/test_command_install_lib.py
@@ -67,6 +67,10 @@ class InstallLibTestCase(support.TempdirManager,
cmd.distribution.packages = [pkg_dir]
cmd.distribution.script_name = 'setup.py'
+ # make sure the build_lib is set the temp dir
+ build_dir = os.path.split(pkg_dir)[0]
+ cmd.get_finalized_command('build_py').build_lib = build_dir
+
# get_output should return 4 elements
self.assertEqual(len(cmd.get_outputs()), 4)