| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
see how much of the file was not covered by the build process
|
|
|
|
| |
by returning an empty list instead of raising a TypeError.
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This patch just adds test_ioctl to the list of expected skips for Cygwin.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
If some other test comes along and uses mimetypes, it will be
initialized from the system files.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
unittest environment. Since his extension finds docstrings in private
functions, it exposed a bug in the difflib doctests.
|
| |
|
|
|
|
| |
encoding. Use sys.getfilesystemencoding().
|
|
|
|
| |
doctests.
|
|
|
|
|
| |
Checking // would call floor division but did not test that
true division had become the default with 'from __future__ import division'.
|
|
|
|
|
| |
Checking // would call floor division but did not test that
true division had become the default with 'from __future__ import division'.
|
|
|
|
| |
Bug fix candidate.
|
| |
|
|
|
|
|
|
| |
- wrap some long lines
- shorten others
- fix indentation
|
|
|
|
|
|
|
| |
closing idempotent (it used to raise a nuisance exception on the 2nd
close attempt).
Bugfix candidate? Probably, but arguable.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Use isinstance() instead of comparing types directly, to enable
subclasses of str and unicode to be used as patterns.
Blessed by /F.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
version of plistlib.py (r1.2)
|
|
|
|
| |
Backport candidate
|
|
|
|
| |
on Windows.
|
|
|
|
| |
Don't run any tests if there is no ssl support.
|
| |
|
|
|
|
|
| |
Don't check expanduser('~') if the home directory == the root directory
(ie, we are running as root).
|
| |
|
|
|
|
|
|
|
| |
sound while the first one is still running, as the first one
one might already have finished.
Fixes part of SF bug #763052.
|
| |
|
|
|
|
| |
Also fix a memory leak.
|
|
|
|
|
| |
* Test with infinite inputs (using take() on the output)
* Test whether GC can find and eliminate cycles.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
* Added unittest that fails before, but not after Neil's fix to ceval.c.
|
| |
|
|
|
|
|
|
| |
(Contributed by Bob Halley)
Add unittests for the new socket.timeout exception.
|