diff Lib/packaging/command/test.py @ 73423:540e278ab646

Undo potentially confusing name change in packaging. This method was named reinitialize_command in distutils and accompanied by a comment suggesting to change it to get_reinitialized_command. Following that, I did the change for distutils2, but it proved confusing: The Distribution object has an internal cache of command objects, to make sure only one instance is ever used, and the name get_reinitialized_command could suggest that the object returned was independent of that cache, which it was not. I’m reverting the name change to make code clearer.
author Éric Araujo <merwok@netwok.org>
date Sun, 06 Nov 2011 06:54:05 +0100
parents 1a31c3be88b1
children fff38970e4e3
line wrap: on
line diff
--- a/Lib/packaging/command/test.py	Sun Nov 06 07:01:18 2011 +0100
+++ b/Lib/packaging/command/test.py	Sun Nov 06 06:54:05 2011 +0100
@@ -56,7 +56,7 @@
         prev_syspath = sys.path[:]
         try:
             # build release
-            build = self.get_reinitialized_command('build')
+            build = self.reinitialize_command('build')
             self.run_command('build')
             sys.path.insert(0, build.build_lib)