This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Natim
Recipients Natim, alexis, eric.araujo, tarek
Date 2011-08-20.14:03:38
SpamBayes Score 2.478425e-09
Marked as misclassified No
Message-id <1313849019.61.0.163718243645.issue12703@psf.upfronthosting.co.za>
In-reply-to
Content
Hello, I did the patch, but I have no idea of how to make a test for it.

More over, I have seen a similar problem each time there is this code in the Python code (here in distutils.util.Distribution.get_command_class) :


            try:
                __import__ (module_name)
                module = sys.modules[module_name]
            except ImportError:
                continue

            try:
                klass = getattr(module, klass_name)
            except AttributeError:
                raise DistutilsModuleError(
                      "invalid command '%s' (no class '%s' in module '%s')"
                      % (command, klass_name, module_name))


Maybe it could be better to have a function in cpython to do that ?
History
Date User Action Args
2011-08-20 14:03:39Natimsetrecipients: + Natim, tarek, eric.araujo, alexis
2011-08-20 14:03:39Natimsetmessageid: <1313849019.61.0.163718243645.issue12703@psf.upfronthosting.co.za>
2011-08-20 14:03:39Natimlinkissue12703 messages
2011-08-20 14:03:38Natimcreate