From: Tarek Ziade Date: Mon, 23 May 2011 15:35:20 +0000 (+0200) Subject: make sure build_dir.build_lib is synced to the faked build location X-Git-Tag: v3.3.0a1~2183^2~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1ae533ac9e1535003daeaf8928018ab1e63c51a;p=python make sure build_dir.build_lib is synced to the faked build location --- diff --git a/Lib/packaging/tests/test_command_install_lib.py b/Lib/packaging/tests/test_command_install_lib.py index 99d47dd621..96749e3bf3 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)