summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyclbr.py
Commit message (Collapse)AuthorAgeFilesLines
* #7092: silence py3k warnings for deprecated modulesEzio Melotti2010-01-301-8/+12
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-2/+2
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-10/+6
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-6/+10
| | | | Patch by flox
* split unittest.py into a packageBenjamin Peterson2009-07-191-1/+1
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-4/+4
|
* Fix test_pyclbr after another platform-dependent function was added to urllib.Georg Brandl2008-05-181-0/+1
|
* Adapt test_pyclbr to the new version of urllib.py:Amaury Forgeot d'Arc2008-05-121-1/+5
| | | | The new mac-specific functions must be ignored.
* Deprecated the mhlib module for removal in 3.0.Brett Cannon2008-05-111-1/+0
|
* #2503 make singletons compared with "is" not == or !=Benjamin Peterson2008-03-291-1/+1
| | | | Thanks to Wummel for the patch
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Fix test_pyclbr after urllib change.Georg Brandl2008-01-201-0/+1
|
* Bug #1560617: in pyclbr, return full module name not only for classes,Georg Brandl2006-09-301-0/+3
| | | | but also for functions.
* Whitespace normalizationNeal Norwitz2006-04-181-1/+1
|
* test_pyclbr goes nuts when a module contains code to try importing a classPhillip J. Eby2006-04-181-0/+3
| | | | | | and provide a substitute if the import fails, because pyclbr sees the class definition. Changed to ignore such cases' base classes and methods, since they will not match.
* Merge email package 4.0 from the sandbox, including documentation, test cases,Barry Warsaw2006-03-181-1/+1
| | | | and NEWS updates.
* Teach a test about the different kinds of functions.Raymond Hettinger2004-09-041-2/+2
|
* Whitespace normalization.Tim Peters2004-08-041-1/+1
|
* PEP-0318, @decorator-style. In Guido's words:Anthony Baxter2004-08-021-12/+32
| | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728.
* Oops! Restored the pickle test to test_pyclbr, but changed types.py soTim Peters2004-07-181-0/+1
| | | | | that pyclbr doesn't need to special-case modules that do "from types import *".
* The Darwin-specific getproxies_internetconfig() was added to urllib,Tim Peters2004-07-181-2/+2
| | | | | | | | causing test_pyclbr to fail on all other platforms. Added that routine to the urllib "ignore" list. Removed the special case for "g" in the pickle module. types.py deletes "g" from its namespace; maybe it didn't always. Whatever, the special case isn't needed today.
* * Migrate set() and frozenset() from the sandbox.Raymond Hettinger2003-11-161-2/+1
| | | | | | | | * Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming.
* Used sets.Set() to compare unordered sequences.Raymond Hettinger2003-05-021-10/+4
| | | | Improves clarity and brevity.
* Last checkin was missing the tuple comma.Raymond Hettinger2002-12-301-1/+1
| | | | The new "substr in str" feature masked the error.
* Restore the test of the random module after including "Random" in theRaymond Hettinger2002-12-301-1/+1
| | | | | | | | ignore tuple. The line, "from _random import Random as CoreGenerator", fools the test code which expects CoreGenerator.__name__ to be "CoreGenerator" instead of "Random".
* Temporarily comment out a test that crashes upon the introduction ofRaymond Hettinger2002-12-301-1/+1
| | | | the _random subclass for Random.
* Add more sophistication to the comparison between pyclbr output andGuido van Rossum2002-12-031-42/+36
| | | | | | real module, by filtering out aliased methods. This, combined with the recent fixes to pyclbr, make it possible to enable more tests with fewer exceptions.
* Moderately heavy reorganization of pyclbr to fix package-related bugs.Guido van Rossum2002-12-021-14/+34
| | | | | | | | | | | | | | | | | | | | - The _modules cache now uses the full module name. - The meaning of the (internal!!!) inpackage argument is changed: it now is the parent package name, or None. readmodule() doesn't support this argument any more. - The meaning of the path argument is changed: when inpackage is set, the module *must* be found in this path (as is the case for the real package search). - Miscellaneous cleanup, e.g. fixed __all__, changed some comments and doc strings, etc. - Adapted the unit tests to the new semantics (nothing much changed, really). Added some debugging code to the unit tests that print helpful extra info to stderr when a test fails (interpreting the test failures turned out to be hard without these).
* 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. :)
* Remove httplib from tested modules.Jeremy Hylton2002-07-121-15/+0
| | | | | | | | The test of httplib makes it difficult to maintain httplib. There are two many idioms that pyclbr doesn't seem to understand, and I don't understand how to update these tests to make them work. Also remove commented out test of urllib2.
* assertHasattr(): Made failure msg better than useless.Tim Peters2002-07-101-1/+4
| | | | test_others(): httplib failed in two new ways. Blame Thumb Boy <wink>.
* SF bug 558179.Guido van Rossum2002-06-051-1/+1
| | | | | Change default for get() back to None. Will backport to 2.2.1.
* Stop sucking up xmllib -- it's deprecated.Tim Peters2002-04-111-1/+0
|
* Fix pyclbr test of httplib without really understanding pyclbr.Jeremy Hylton2002-03-081-1/+2
| | | | | It seems that the new class HTTP11 in httplib.test() isn't discoverable by pyclbr, which causes this test to fail.
* SF bug [#467336] doctest failures w/ new-style classes.Tim Peters2001-10-031-1/+4
| | | | | | | | | | Taught doctest about static methods, class methods, and property docstrings in new-style classes. As for inspect.py/pydoc.py before it, the new stuff needed didn't really fit into the old architecture (but was less of a strain to force-fit here). New-style class docstrings still aren't found, but that's the subject of a different bug and I want to fix that right instead of hacking around it in doctest.
* SF patch [#466616] Exclude imported items from doctest,Tim Peters2001-10-021-2/+3
| | | | | | | from Tim Hochberg. Also mucho fiddling to change the way doctest determines whether a thing is a function, module or class. Under 2.2, this really requires the functions in inspect.py (e.g., types.ClassType is close to meaningless now, if not outright misleading).
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+7
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* builtin_dir(): Treat classic classes like types. Use PyDict_Keys insteadTim Peters2001-09-041-1/+1
| | | | | | | | | | | | | | of PyMapping_Keys because we know we have a real dict. Tolerate that objects may have an attr named "__dict__" that's not a dict (Py_None popped up during testing). test_descr.py, test_dir(): Test the new classic-class behavior; beef up the new-style class test similarly. test_pyclbr.py, checkModule(): dir(C) is no longer a synonym for C.__dict__.keys() when C is a classic class (looks like the same thing that burned distutils! -- should it be *made* a synoym again? Then it would be inconsistent with new-style class behavior.).
* Repair Unix-specific assumptions that caused this to fail on Windows.Tim Peters2001-08-131-20/+18
|
* Nick Mathewson: test suite for the class browser support module.Fred Drake2001-08-131-0/+158