summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_module.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-251-1/+1
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Convert test_module to use unittest.Collin Winter2007-04-061-45/+58
|
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Repair the test (adding a docstring to the module type changed theGuido van Rossum2002-06-041-1/+1
| | | | docstring for an uninitialized module object).
* Surprising fix for SF bug 563060: module can be used as base class.Guido van Rossum2002-06-041-0/+48
Change the module constructor (module_init) to have the signature __init__(name:str, doc=None); this prevents the call from type_new() to succeed. While we're at it, prevent repeated calling of module_init for the same module from leaking the dict, changing the semantics so that __dict__ is only initialized if NULL. Also adding a unittest, test_module.py. This is an incompatibility with 2.2, if anybody was instantiating the module class before, their argument list was probably empty; so this can't be backported to 2.2.x.