summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* protect against test problems with JythonSkip Montanaro2003-08-031-6/+7
|
* added test for bug 782369Skip Montanaro2003-08-031-0/+9
|
* more extension marshal tests and conversion to unittest - was surprised toSkip Montanaro2003-08-021-39/+183
| | | | see how much of the file was not covered by the build process
* As discussed on python-dev, changed builtin.zip() to handle zero argumentsRaymond Hettinger2003-08-022-2/+6
| | | | by returning an empty list instead of raising a TypeError.
* Remove caching of TimeRE (and thus LocaleTime) instance. Error was beingBrett Cannon2003-07-241-7/+10
| | | | | | caught when executing test_strptime, test_logging, and test_time in that order when the testing of "%c" occured. Suspect the cache was not being recreated (the test passed when test_logging was forced to re-establish the locale).
* Restored commented-out line checked in by mistake.Tim Peters2003-07-231-1/+1
|
* locale-restoration code: Don't leave comparison to None implicit. ForTim Peters2003-07-232-2/+2
| | | | | all I know, the original locale may be '' (I don't think that's possible, but ...), and if so we would certainly want to restore it.
* Fred wasn't kidding -- there really are docs for the locale module <wink>.Tim Peters2003-07-231-11/+20
| | | | | | | | | | | | | | Obtain the original locale in the documented way. This way actually works for me. Restore the original locale at the end, instead of forcing to "C". Move the locale fiddling into the test driver instead of doing it as a side effect of merely importing the module. I don't know why the test is mucking with locale (and also added a comment saying so), but it surely has no justification for doing that as an import side-effect. Now whenever the locale-changing code executes, the locale-restoring code will also get run.
* Fix error in test of not comparing against 0 item of a listBrett Cannon2003-07-221-1/+1
|
* Patch #775784: YA Cygwin expected regression test skip patchJason Tishler2003-07-221-0/+1
| | | | This patch just adds test_ioctl to the list of expected skips for Cygwin.
* Change the zipimport implementation to accept files containingThomas Heller2003-07-221-1/+20
| | | | | | | | | arbitrary bytes before the actual zip compatible archive. Zipfiles containing comments at the end of the file are still not supported. Add a testcase to test_zipimport, and update NEWS. This closes sf #775637 and sf #669036.
* Make sure mimetypes is reinitialized before running the tests.Jeremy Hylton2003-07-181-0/+1
| | | | | If some other test comes along and uses mimetypes, it will be initialized from the system files.
* Restore the locale to "C" on exit.Jeremy Hylton2003-07-181-2/+5
| | | | | | If this doesn't happen, it leaves the locale in a state that can cause other tests to fail. For example, running test_strptime, test_logging, and test_time in that order.
* Reflow long line.Jeremy Hylton2003-07-171-2/+2
|
* Exercise Jim Fulton's new doctest extension for running doctests in aRaymond Hettinger2003-07-161-2/+5
| | | | | unittest environment. Since his extension finds docstrings in private functions, it exposed a bug in the difflib doctests.
* Extend last change to cover TestSuites as well as TestCases.Raymond Hettinger2003-07-161-1/+1
|
* Prevent failure on the mac, where "mbcs" is not the file systemMark Hammond2003-07-161-2/+3
| | | | encoding. Use sys.getfilesystemencoding().
* run_unittest() to support TestCase instances as well as classes. Helps with ↵Raymond Hettinger2003-07-161-1/+4
| | | | doctests.
* Fixed test and converted to unittest format.Raymond Hettinger2003-07-151-1/+0
| | | | | Checking // would call floor division but did not test that true division had become the default with 'from __future__ import division'.
* Fixed test and converted to unittest format.Raymond Hettinger2003-07-151-6/+25
| | | | | Checking // would call floor division but did not test that true division had become the default with 'from __future__ import division'.
* SF patch 763201: handling of SyntaxErrors in symbol table buildJeremy Hylton2003-07-152-3/+30
| | | | Bug fix candidate.
* Add various test cases from SF patch 543867.Walter Dörwald2003-07-151-1/+58
|
* stylistic nits:Fred Drake2003-07-141-6/+8
| | | | | | - wrap some long lines - shorten others - fix indentation
* Make close() identical to __del__() for a dumbdbm database. MakeTim Peters2003-07-131-0/+7
| | | | | | | closing idempotent (it used to raise a nuisance exception on the 2nd close attempt). Bugfix candidate? Probably, but arguable.
* Reworked test_warnings.py:Raymond Hettinger2003-07-132-56/+81
| | | | | | | | | | | | | * It ran fine under "python regrtest.py test_warnings" but failed under "python regrtest.py" presumably because other tests would add to filtered warnings and not reset them at the end of the test. * Converted to a unittest format for better control. Renamed monkey() and unmonkey() to setUp() and tearDown(). * Increased coverage by testing all warnings in __builtin__. * Increased coverage by testing regex matching of specific messages.
* This test failed on WindowsME because the full file path did not getRaymond Hettinger2003-07-132-6/+6
| | | | | | reported consistently with the *nix world. 'Lib/test/test_warnings.py' came out as 'lib\test\test_warnings.py'. The basename is all we care about so I used that.
* Don't include slash in search string; it's OS-specific.Jeremy Hylton2003-07-111-1/+1
|
* Change warnings to avoid importing re module during startup.Jeremy Hylton2003-07-112-0/+63
| | | | | | | | | Add API function simplefilter() that does not create or install regular expressions to match message or module. Extend the filters data structure to store None as an alternative to re.compile(""). Move the _test() function to test_warnings and add some code to try and avoid disturbing the global state of the warnings module.
* Added a new randomized test.Tim Peters2003-07-111-0/+28
|
* Fix SF bug 764095: Don't use network in test_httplib.Jeremy Hylton2003-07-082-14/+35
|
* New function sys.getcheckinterval(), to complement setcheckinterval().Tim Peters2003-07-061-2/+4
|
* Fixes bug of timezone value being left as -1 when ``time.tzname[0] ==Brett Cannon2003-07-031-3/+3
| | | | | | | time.tzname[1] and not time.daylight`` is true when it should only when time.daylight is true. Tests are also fixed. Closes bug #763047 and its cohort #763052.
* Fix and test for bug #764548:Just van Rossum2003-07-021-0/+10
| | | | | | Use isinstance() instead of comparing types directly, to enable subclasses of str and unicode to be used as patterns. Blessed by /F.
* fixed typo in commentJust van Rossum2003-07-021-1/+1
|
* On those systems lacking the AFMT_S16_NE symbol, the test was failingAndrew MacIntyre2003-07-021-1/+1
| | | | | | | because it was still looking in the ossaudiodev module namespace for this symbol. As the symbol has already been rebound as a global, use that instead.
* - added (c)StringIO tests; cStringIO usage failed in the previousJust van Rossum2003-07-011-0/+16
| | | | version of plistlib.py (r1.2)
* Fix SF bug #763023, difflib.py: ratio() zero division not caughtNeal Norwitz2003-07-011-0/+12
| | | | Backport candidate
* connector(): You can't use an empty string as an argument to connect()Tim Peters2003-07-011-1/+1
| | | | on Windows.
* Fix SF bug #763770, test_socket_ssl crashNeal Norwitz2003-07-011-2/+2
| | | | Don't run any tests if there is no ssl support.
* Test Brett's addition of __all__ to Queue.Raymond Hettinger2003-07-011-0/+1
|
* Fix SF #763362, test_posixpath failedNeal Norwitz2003-07-011-4/+6
| | | | | Don't check expanduser('~') if the home directory == the root directory (ie, we are running as root).
* Fix typo in error messageNeal Norwitz2003-06-301-1/+1
|
* Don't require that a RuntimeError is raised when playing a secondWalter Dörwald2003-06-301-5/+9
| | | | | | | sound while the first one is still running, as the first one one might already have finished. Fixes part of SF bug #763052.
* Fix SF 762891: "del p[key]" on proxy object raises SystemError()Raymond Hettinger2003-06-301-0/+11
|
* Fix SF #754870, SSL crash interpreter when remote side closes during connectNeal Norwitz2003-06-301-1/+37
| | | | Also fix a memory leak.
* More testsRaymond Hettinger2003-06-291-3/+59
| | | | | * Test with infinite inputs (using take() on the output) * Test whether GC can find and eliminate cycles.
* Removed invalid test.Raymond Hettinger2003-06-291-3/+0
| | | | | | | | | Analysis by Bob Halley: The test seems to expect that if time.daylight is true, then the is_dst field of the tm structure will be 1 too. But this isn't the case, since daylight is true if the timezone does DST, *not* if DST is in effect.
* SF bug #762455: Python segfaults when sys.stdout is changed in getattrRaymond Hettinger2003-06-291-0/+15
| | | | * Added unittest that fails before, but not after Neil's fix to ceval.c.
* Whitespace normalization.Tim Peters2003-06-293-6/+6
|
* SF patch #760257: add socket.timeout exceptionRaymond Hettinger2003-06-291-2/+57
| | | | | | (Contributed by Bob Halley) Add unittests for the new socket.timeout exception.