Chris Jerdonek added the comment:

I will at least! :)  I noticed the issue after trying to use unittest test 
discovery with a custom loader.  Fortunately, there is at least this 
work-around (though it relies on an implementation detail):

    class MyTestProgram(unittest.TestProgram):

        # Override because of issue #17052.
        def _do_discovery(self, argv, Loader=None):
            if Loader is None:
                Loader = lambda: self.testLoader
            super(TestPizza, self)._do_discovery(argv, Loader=Loader)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17052>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to