| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
The @euro part is backported to 2.2.3.
|
|
|
|
|
|
| |
Try to write to TESTFN, if that fails, try TESTFN in /tmp
If that fails, print a warning and go on.
Will backport.
|
|
|
|
|
| |
Cleanup (remove) the file(s) after we are done with the test.
(Fixes problem on snake farm)
|
| |
|
|
|
|
| |
exception.
|
|
|
|
|
|
|
| |
bug #596434. (Alas, I don't think this completely covers that bug.)
Remove 'wrapper' argument from BaseTestCase.check_split() -- it's not
actually needed.
|
|
|
|
|
|
|
|
| |
Since properties are supported here, is possible that
instance_getattr2() raises an exception. Fix all code that made this
assumption.
Backport candidate.
|
| |
|
|
|
|
|
| |
Remove extra noise from the output when there are no errors, and say more
in the exception when there are errors.
|
| |
|
|
|
|
| |
Closes SF bug #511737.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Moved the write() test to near the end of the file since it screws up
font-lock. ;-(
|
|
|
|
| |
Python 2.2.3 candidate.
|
|
|
|
| |
Don't crash when getting value of a property raises an exception
|
| |
|
|
|
|
| |
these days.
|
|
|
|
|
|
| |
other tests to generate warning when they didn't before. In
particular, this cancels not only filters set by -W, but also from
test.regrtest.
|
| |
|
|
|
|
|
|
| |
guessing that urlparse() / urlunparse() use them.
Add tests of urldefrag().
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
classes was called with three arguments. This makes no sense, there's
no way to pass in the "modulo" 3rd argument as for __pow__, and
classic classes don't do this. [SF bug 620179]
I don't want to backport this to 2.2.2, because it could break
existing code that has developed a work-around. Code in 2.2.2 that
wants to use __ipow__ and wants to be forward compatible with 2.3
should be written like this:
def __ipow__(self, exponent, modulo=None):
...
|
|
|
|
| |
Will add test and backport.
|
|
|
|
|
| |
Only runs when sys.maxint == 2**32 - 1; different things go wrong
on a 64-bit box.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
ths "should be" skipped depends on os.path.supports_unicode_filenames,
not really on the platform. Fiddled the expected-skip constructor
appropriately.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
list(xrange(sys.maxint / 4))
test. Changed 4 to 2.
The belief is that this test intended to trigger a bit of code in
listobject.c's NRESIZE macro that's looking for arithmetic overflow. As
written, it doesn't achieve that, though, and leaves it up to the platform
realloc() as to whether it wants to allocate 2 gigabytes. Some platforms
say "sure!", although they don't appear to mean it, and disaster ensues.
Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow
test instead, leaving the platform realloc() out of it.
I'll backport this to the 2.2 branch next.
|
|
|
|
|
|
| |
sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink>
version), and fix test_pep277.py in a few minor ways.
Including doc and NEWS entries.
|
| |
|
|
|
|
|
| |
be skipped everywhere except on Windows NT and descendants, but I'm
only going to add it to the skip list for the platform I can test.)
|
|
|
|
| |
supervision of regrtest.py. Will backport to 2.2.2.
|
|
|
|
|
| |
a junk directory behind that caused 4 other tests to fail later. Now
it cleans up after itself, and the 4 bogus later failures don't happen.
|
| |
|
| |
|
|
|
|
| |
enough to fit in one line.
|
|
|
|
|
|
|
| |
patch #617312, both on the trunk and the 22-maint branch.
Also added a test case, and ported the test_trace I wrote for HEAD
to 2.2.2 (with all those horrible extra 'line' events ;-).
|
| |
|
|
|
|
| |
Relax regular expression to handle spaces in user and group names.
|
| |
|
|
|
|
| |
Closes SF bug #583248; backporting to r22-maint branch.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A possibility to deadlock (on the hidden import lock) was created here
in 2.3, seemingly when tempfile.py started to call functions in
random.py. The cure is "the usual": don't spawn threads as a side
effect of importing, when the spawned threads themselves do imports
(directly or indirectly), and the code that spawned the threads is
waiting for the threads to finish (they can't finish, because they're
waiting for the import lock the spawner still holds). Worming around
this is why the "test_main" mechanism was introduced in regrest, so
it's a straightforward fix.
NOT a bugfix candidate; the problem was introduced in 2.3.
|
|
|
|
|
|
| |
Add a test too. urljoin() would make file:/tmp/foo instead of file:///tmp/foo
Bugfix candidate, I will backport.
|
|
|
|
|
|
| |
module used in the Zope TAL implementation. The bug was already fixed
in the Python standard library, but the regression test would be good
to keep around.
|
|
|
|
|
| |
593560, with some minor cleanups, line folding and whitespace
normalization by Barry.
|
| |
|
|
|
|
| |
because there test_grammar.py pulls them out of strings there.
|