diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2012-02-12 09:13:06 (GMT) |
---|---|---|
committer | Ross Lagerwall <rosslagerwall@gmail.com> | 2012-02-12 09:13:06 (GMT) |
commit | 2f234db3ebeb2417291bfe31f4a084f5fc280c66 (patch) | |
tree | 5efb4dedc3bfecd31496fbf01c8e1ef9aec4b3e0 /Lib/packaging/tests/test_command_build.py | |
parent | 003c7a3fcaafcddc149a528cb79a71c6050893e5 (diff) | |
parent | b9df745ab50608454418779d67319d987d9bd13d (diff) | |
download | cpython-2f234db3ebeb2417291bfe31f4a084f5fc280c66.zip cpython-2f234db3ebeb2417291bfe31f4a084f5fc280c66.tar.gz cpython-2f234db3ebeb2417291bfe31f4a084f5fc280c66.tar.bz2 |
Merge with remote.
Diffstat (limited to 'Lib/packaging/tests/test_command_build.py')
-rw-r--r-- | Lib/packaging/tests/test_command_build.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/packaging/tests/test_command_build.py b/Lib/packaging/tests/test_command_build.py index 91fbe42..280d709 100644 --- a/Lib/packaging/tests/test_command_build.py +++ b/Lib/packaging/tests/test_command_build.py @@ -26,7 +26,8 @@ class BuildTestCase(support.TempdirManager, # build_platlib is 'build/lib.platform-x.x[-pydebug]' # examples: # build/lib.macosx-10.3-i386-2.7 - plat_spec = '.%s-%s' % (cmd.plat_name, sys.version[0:3]) + pyversion = '%s.%s' % sys.version_info[:2] + plat_spec = '.%s-%s' % (cmd.plat_name, pyversion) if hasattr(sys, 'gettotalrefcount'): self.assertTrue(cmd.build_platlib.endswith('-pydebug')) plat_spec += '-pydebug' @@ -41,7 +42,7 @@ class BuildTestCase(support.TempdirManager, self.assertEqual(cmd.build_temp, wanted) # build_scripts is build/scripts-x.x - wanted = os.path.join(cmd.build_base, 'scripts-' + sys.version[0:3]) + wanted = os.path.join(cmd.build_base, 'scripts-' + pyversion) self.assertEqual(cmd.build_scripts, wanted) # executable is os.path.normpath(sys.executable) |