summaryrefslogtreecommitdiffstats
path: root/Lib/test/test___all__.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge p3yk branch with the trunk up to revision 45595. This breaks a fairThomas Wouters2006-04-211-4/+0
| | | | | | | | | | | | | | | | | | | | number of tests, all because of the codecs/_multibytecodecs issue described here (it's not a Py3K issue, just something Py3K discovers): http://mail.python.org/pipermail/python-dev/2006-April/064051.html Hye-Shik Chang promised to look for a fix, so no need to fix it here. The tests that are expected to break are: test_codecencodings_cn test_codecencodings_hk test_codecencodings_jp test_codecencodings_kr test_codecencodings_tw test_codecs test_multibytecodec This merge fixes an actual test failure (test_weakref) in this branch, though, so I believe merging is the right thing to do anyway.
* Merge trunk up to 43069, putting re.py back and hopefully making the branchThomas Wouters2006-04-211-1/+0
| | | | usable again.
* Merge part of the trunk changes into the p3yk branch. This merges from 43030Thomas Wouters2006-04-211-3/+0
| | | | | | | | | | | | (branch-creation time) up to 43067. 43068 and 43069 contain a little swapping action between re.py and sre.py, and this mightily confuses svn merge, so later changes are going in separately. This merge should break no additional tests. The last-merged revision is going in a 'last_merge' property on '.' (the branch directory.) Arbitrarily chosen, really; if there's a BCP for this, I couldn't find it, but we can easily change it afterwards ;)
* Suppress new deprecation warnings when running theTim Peters2006-02-181-0/+4
| | | | | | | | | | | test suite. For urllib2, move the import of gopherlib into the only function that uses it: users (including the test suite) certainly shouldn't see a deprecation warning just because they import urllib2! If they actually use gopher_open(), fine, _then_ they should see a deprecation warning.
* Remove the deprecated statcache module.Raymond Hettinger2004-12-051-3/+0
|
* Essentially SF patch 1061679: add missing __all__ to pickletools.py.Tim Peters2004-11-061-0/+1
| | | | Harmless.
* Removed no-longer-needed convolutions to recover from damaged modulesTim Peters2004-08-021-14/+0
| | | | getting left beyind in sys.modules.
* Move Decimal from the sandbox into production.Raymond Hettinger2004-07-011-0/+1
|
* Add heapq to list of __all__ checks.Raymond Hettinger2004-06-131-0/+1
|
* * Migrate set() and frozenset() from the sandbox.Raymond Hettinger2003-11-161-3/+2
| | | | | | | | * 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.
* Convert heapq.py to a C implementation.Raymond Hettinger2003-11-081-1/+0
|
* Test __all__ for unittest.pyRaymond Hettinger2003-09-161-1/+2
|
* Test Brett's addition of __all__ to Queue.Raymond Hettinger2003-07-011-0/+1
|
* All two more modules with __all__.Raymond Hettinger2003-05-101-0/+2
|
* Added missing modules to __all__ check.Raymond Hettinger2003-05-021-0/+4
|
* Used sets.Set() to compare unordered sequences.Raymond Hettinger2003-05-021-4/+3
| | | | Improves clarity and brevity.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-3/+1
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Port test_pwd.py to PyUnit. Check that getpwall() andWalter Dörwald2003-04-151-159/+185
| | | | | | | | | | | | getpwnam()/getpwuid() return consistent data. Change test_grp to check that getgrall() and getgrnam()/getgrgid() return consistent data. Add error checks similar to test_pwd.py. Port test___all__.py to PyUnit. From SF patch #662807.
* Add special consideration for rlcompleter. As a side effect ofGuido van Rossum2002-10-091-1/+12
| | | | | | | | | | | | | | | | initializing GNU readline, setlocale(LC_CTYPE, "") is called, which changes the <ctype.h> macros to use the "default" locale (which isn't the *initial* locale -- the initial locale is the "C" locale in which only ASCII characters are printable). When the default locale is e.g. Latin-1, the repr() of string objects can include 8-bit characters with the high bit set; I believe this is due to the recent PRINT_MULTIBYTE_STRING changes to stringobject.c. This in turn screws up test_pyexpat and test_rotor, which depend on the repr() of 8-bit strings with high bit characters. The solution (for now) is to force the LC_CTYPE locale to "C" after importing rlcompleter. This is the locale required by the test suite anyway.
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Tighten up some warning filters, and break some dependencies on theTim Peters2002-04-161-3/+6
| | | | order in which the tests are normally run.
* It makes more sense to call resetwarnings() after every test runs thanTim Peters2002-04-161-2/+0
| | | | to keep doing that in every test that wants to filter a warning.
* Reduce the number of test-suite DeprecationWarnings; start addingTim Peters2002-04-151-0/+2
| | | | resetwarnings() calls too.
* Ignore more deprecation warnings.Tim Peters2002-04-111-4/+6
|
* SF patch 490393: test___all__ and Jython; from Finn Bock.Tim Peters2001-12-071-3/+4
| | | | Don't even try to import _socket when running under Jython.
* Fix comment typoAndrew M. Kuchling2001-11-021-1/+1
|
* Suppressing all DeprecationWarning messages was a bit of a problem forGuido van Rossum2001-09-041-3/+3
| | | | | the -Qwarnall option, so I've changed this to only filter out the one warning that's a problem in practice.
* Whitespace normalization.Tim Peters2001-08-091-1/+1
|
* Hack to workaround bug #445984: attempt to import _socket beforeGreg Ward2001-08-041-0/+4
| | | | | | | starting the test suite proper. If _socket fails to build, that will make this test fail with an ImportError -- handled by the test harness as "no such module _socket" -- instead of an AttributeError deep in CGIHTTPServer.
* final round of __all__ lists (I hope) - skipped urllib2 because Moshe may beSkip Montanaro2001-03-011-0/+16
| | | | giving it a slight facelift
* sre_{parse, compile} no longer define __all__.Tim Peters2001-02-181-2/+0
|
* removed __all__ from several modulesSkip Montanaro2001-02-181-17/+0
|
* bunch more __all__ listsSkip Montanaro2001-02-151-0/+29
| | | | | | also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
* test_pty started failing on Windows, but if and only if test___all__ wasTim Peters2001-02-121-2/+16
| | | | | | | | | | | | run first. Indirectly due to Skip adding check_all("pty") to test___all__: that caused the expected ImportError due to pty.py trying to import the non-existent FCNTL to get handled by test___all__, leaving a partial module object for pty in sys.modules, which caused the later import of pty via test_pty to succeed. Then test_tpy died with an AttributeError, due to trying to access attributes of pty that didn't exist. regrtest viewed that as a failure rather than the appropriate "test skipped". Fixed by deleting partial module objects in test___all__ when test___all__ handles an ImportError.
* __all__ for several more modulesSkip Montanaro2001-02-121-0/+11
|
* a few more __all__ listsSkip Montanaro2001-02-071-0/+4
|
* test for presence of __builtins__ in names before deleting it, enabling thisSkip Montanaro2001-02-071-1/+2
| | | | to work with Jython (ugh! I hate that name!). This closes patch 103665.
* added several more __all__ listsSkip Montanaro2001-02-061-0/+7
|
* added a few more __all__ listsSkip Montanaro2001-01-251-8/+10
| | | | test___all__.py: fail silently in check_all if the module can't be imported
* a few more modules get __all__Skip Montanaro2001-01-241-0/+9
|
* It's "gopherlib" not "gopher".Barry Warsaw2001-01-241-1/+1
|
* added a few more __all__ listsSkip Montanaro2001-01-231-0/+8
| | | | fixed typo in ihooks docstring
* - Use "exec ... in dict" to avoid having to walk on eggshells; localsGuido van Rossum2001-01-221-14/+20
| | | | | | | | | no don't have to start with underscore. - Add spaces after commas in argument lists. - Only test dbhash if bsddb can be imported. (Wonder if there are more like this?)
* Whitespace normalization.Tim Peters2001-01-211-2/+1
|
* more __all__ updatesSkip Montanaro2001-01-201-0/+11
|
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+55
added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.