| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
effect at the time test_decimal was imported. Else
running test_decimal had the bad side effect of
permanently changing the decimal context in effect.
That caused text_tokenize to fail if it ran after
test_decimal.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- The doctests in decistmt() weren't run at all when
test_tokenize was run via regrtest.py.
- Some expected output in decistmt() was Windows-specific
(but nobody noticed because the doctests weren't getting
run).
- test_roundtrip() didn't actually test anything when
running the tests with -O. Now it does.
- Changed test_roundtrip() to show the name of the input
file when it fails. That would have saved a lot of
time earlier today.
- Added a bunch of comments.
|
| |
|
|
|
|
| |
adds the following API calls: PySet_Clear(), _PySet_Next(), and
_PySet_Update(). The latter two are considered non-public. Tests and
documentation (for the public API) are included.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
This is from the SF tracker as well; for some reason the
content of test_index.py was lost and an empty file was
checked in instead.
|
| | |
|
| |
|
|
| |
Fix the hit and miss style of testing for sets and dicts.
|
| | |
|
| |
|
|
| |
with title().
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
itertools.tee->instance->attribute->itertools.tee and
itertools.tee->teedataobject->itertools.tee cycles, which can be found now
that itertools.tee and its teedataobject participate in GC, remain findable
and cleanable. The test won't fail when they aren't, but at least the
frequent hunt-refleaks runs would spot the rise in refleaks.
|
| |
|
|
| |
doesn't get cleaned up and thus leaks.
|
| | |
|
| |
|
|
| |
so it passes w/ -Qnew.
|
| |
|
|
| |
with or without -Qnew.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
def foo((x)): was getting recognized as requiring tuple unpacking
which is not correct.
Add tests for this case and the proper way to unpack a tuple of one:
def foo((x,)):
test_inpsect was incorrect before. I'm not sure why it was passing,
but that has been corrected with a test for both functions above.
This means the test (and therefore inspect.getargspec()) are broken in 2.4.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
ascii seems like the safest bet that it will exist. I wonder if utf-8
would be a better choice? This should get test_fileinput passing on OpenBSD.
|
| |
|
|
| |
(reviewed by Walter Dörwald)
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
that yields after a throw(). Make @contextmanager not reraise
exceptions, but return a false value in that case instead. Add test
cases for both behaviors.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Adds join() and task_done() methods to track when all enqueued tasks have
been gotten and fully processed by daemon consumer threads.
|
| | |
|
| |
|
|
|
| |
Cleanup terminated processes as well.
Add cmd attribute to Popen4.
|
| | |
|
| |
|
|
| |
section).
|
| | |
|
| | |
|
| |
|
|
| |
child process is closed when the test completes.
|
| |
|
|
|
| |
Fix crash when a Unicode string containing an encoding declaration is
compile()d. Fixes #1115379.
|
| | |
|
| |
|
|
| |
properties.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
as diagnosed by Nick Coghlan.
test_capi.py: A test module should never spawn a thread as
a side effect of being imported. Because this one did, the
segfault one of its thread tests caused didn't occur until
a few tests after test_regrtest.py thought test_capi was
finished. Repair that. Also join() the thread spawned
at the end, so that test_capi is truly finished when
regrtest reports that it's done.
_testcapimodule.c test_thread_state(): this spawns a
couple of non-threading.py threads, passing them a PyObject*
argument, but did nothing to ensure that those threads
finished before returning. As a result, the PyObject*
_could_ (although this was unlikely) get decref'ed out of
existence before the threads got around to using it.
Added explicit synchronization (via a Python mutex) so
that test_thread_state can reliably wait for its spawned
threads to finish.
|
| | |
|
| |
|
|
|
|
|
|
| |
Schroeder.
This was a fair amount of rework of the patch. Refactored test_fork1 so it
could be reused by the new tests for wait3/4. Also made them into new style
unittests (derive from unittest.TestCase).
|
| |
|
|
|
|
|
|
|
| |
This patch adds a-LAW encoding to audioop and replaces the old
u-LAW encoding/decoding code with the current code from sox.
Possible issues: the code from sox uses int16_t.
Code by Lars Immisch
|
| |
|
|
|
|
| |
returns a non-string when converting %Z.
Will backport.
|
| | |
|