mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
* Improvements to stdlib/2/unittest.pyi * Adds a bunch of missing things. * Fixes the signatures of assertRaises and failUnlessRaises. * Corrects the name of a TestCase subclass from CallableTestCase to FunctionTestCase. * Makes defaultTestLoader an instance of TestLoader, as it should be, rather than an alias. Based on https://docs.python.org/2/library/unittest.html and https://github.com/python/cpython/tree/2.7/Lib/unittest. * Improvements to stdlib/3/unittest/__init__.pyi * The constructor arguments to TextTestResult are all required. * There is a module-level load_tests() function. * removeResult() returns a bool. Based on https://docs.python.org/3/library/unittest.html and https://github.com/python/cpython/tree/master/Lib/unittest.