summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_module.py
Commit message (Collapse)AuthorAgeFilesLines
* don't rely on the order of module clearingBenjamin Peterson2012-02-201-1/+1
|
* Merged revisions 85392 via svnmerge fromBenjamin Peterson2010-10-121-1/+16
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85392 | benjamin.peterson | 2010-10-12 17:57:59 -0500 (Tue, 12 Oct 2010) | 1 line prefer clearing global objects to obscure module.__dict__ bugs #10068 ........
* only clear a module's __dict__ if the module is the only one with a ↵Benjamin Peterson2009-10-151-0/+8
| | | | reference to it #7140
* #6707 fix a crash with dir() on an uninitialized moduleBenjamin Peterson2009-08-151-0/+1
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-2/+2
|
* 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.