summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* crash_in_get_sf736892(): A test of SF 736892, forcing function to actBarry Warsaw2003-05-291-0/+14
| | | | like an unbound method dumps core.
* Remove debug code from weakref_segfault().Guido van Rossum2003-05-291-3/+1
| | | | | Also move the call of the test to the top; the crash is caused by a double free.
* Add testcase for SF 742911.Guido van Rossum2003-05-291-0/+24
|
* The backport gets Fred's seal of approval:Barry Warsaw2003-05-281-0/+58
| | | | | | | | | | | | | | | | | | | SF 742860: WeakKeyDictionary __delitem__ uses iterkeys Someone review this, please! Final releases are getting close, Fred (the weakref guy) won't be around until Tuesday, and the pre-patch code can indeed raise spurious RuntimeErrors in the presence of threads or mutating comparison functions. See the bug report for my confusions: I can't see any reason for why __delitem__ iterated over the keys. The new one-liner implementation is much faster, can't raise RuntimeError, and should be better-behaved in all respects wrt threads. New tests test_weak_keyed_bad_delitem and test_weak_keyed_cascading_deletes fail before this patch. Backported the tests and the patch.
* Backport fix for SF bug 692776.Jeremy Hylton2003-05-221-0/+24
| | | | | | Add a tp_new slot to function objects that handles the case of a function requiring a closure. Put the function type in the new module, rather than having a function new.function(). Add tests.
* Backport fix for SF bug 734869 and sundry compiler cleanups.Jeremy Hylton2003-05-222-0/+2
|
* minor fix, jython-only. Don't asssume stdout to save is the ur-stdout.Samuele Pedroni2003-05-171-1/+2
|
* beefed up version: jython support, covers now fixed differences between ↵Samuele Pedroni2003-05-171-10/+103
| | | | CPython/Jython.
* file_truncate(): Backported 2.3 code so that file.truncate(n) works onTim Peters2003-04-301-15/+30
| | | | | | Windows when n is too big to fit in a 32-bit int. This was a hole in 2.2's large file support on Windows, and turns out it's a bad hole at least for ZODB.
* Patch #681152: Support escaped unicode characters in classes. Fixes 612074.Martin v. Löwis2003-04-191-0/+4
|
* Fixed the gc-vs-__del__ bugs for new-style classes. That's it for this one.Tim Peters2003-04-081-0/+44
|
* Backporting new gc-vs-__del__ tests. These pass, but are restrictedTim Peters2003-04-081-0/+53
| | | | to old-style classes. New-style classes remain vulnerable in 2.2.
* This was failing on Windows, due to various attempts to delete filesTim Peters2003-03-311-10/+5
| | | | | that were still open. Made the tail end of the test look more like the CVS head version.
* backport test skip for test_locale on Mac OS XSkip Montanaro2003-03-312-1/+4
|
* backport largefile resource requirement for Mac OSXSkip Montanaro2003-03-311-5/+5
|
* SF bug 705836: struct.pack of floats in non-native endian orderTim Peters2003-03-201-0/+46
| | | | | | | | | | pack_float, pack_double, save_float: All the routines for creating IEEE-format packed representations of floats and doubles simply ignored that rounding can (in rare cases) propagate out of a long string of 1 bits. At worst, the end-off carry can (by mistake) interfere with the exponent value, and then unpacking yields a result wrong by a factor of 2. In less severe cases, it can end up losing more low-order bits than intended, or fail to catch overflow *caused* by rounding.
* binascii_a2b_base64: Properly return an empty string if the input was allThomas Wouters2003-03-171-0/+4
| | | | | | | invalid, rather than returning a string of random garbage of the estimated result length. Closes SF patch #703471 by Hye-Shik Chang. Backport from 2.3.
* Backport:Guido van Rossum2003-02-241-0/+1
| | | | | | | | | | Fix from SF patch #633359 by Greg Chapman for SF bug #610299: The problem is in sre_compile.py: the call to _compile_charset near the end of _compile_info forgets to pass in the flags, so that the info charset is not compiled with re.U. (The info charset is used when searching to find the first character at which a match could start; it is not generated for patterns beginning with a repeat like '\w{1}'.)
* Backport SF #660455 fix.Guido van Rossum2003-02-121-0/+4
|
* Partial backport for changes to fix SF bug #678518 (assert & global).Neal Norwitz2003-02-101-0/+13
|
* backport:Neal Norwitz2003-02-021-0/+27
| | | | | | | | | | revision 1.10 date: 2002/10/29 19:08:29; author: gvanrossum; state: Exp; lines: +27 -0 Added test for this fix to classobject.c: Since properties are supported here, is possible that instance_getattr2() raises an exception. Fix all code that made this assumption.
* backport:Neal Norwitz2003-02-021-0/+5
| | | | | | | | revision 1.14 date: 2003/01/29 14:20:23; author: mwh; state: Exp; lines: +5 -0 Teach the parsermodule about floor division. Fixes [ 676521 ] parser module validation failure
* backport:Neal Norwitz2003-01-282-2/+8
| | | | | | Fix SF bug# 676155, RuntimeWarning with tp_compare Check return value of PyLong_AsDouble(), it can return an error.
* Backport:Neal Norwitz2003-01-131-1/+24
| | | | | | | Fix SF bug #667147, Segmentation fault printing str subclass Fix infinite recursion which occurred when printing an object whose __str__() returned self.
* Backport Guido's checkins which disabled the bastion testsNeal Norwitz2003-01-132-13/+3
|
* Get the test to pass again by backporting Guido's checkin 1.173:Neal Norwitz2003-01-131-0/+2
| | | | Disable the rexec test now that rexec is out of grace.
* backport:Neal Norwitz2003-01-101-0/+18
| | | | | | SF #665913, Fix mmap module core dump with unix Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.
* Backport typeobject.c revision 2.201 plus associated tests from 2.3:Guido van Rossum2003-01-071-0/+69
| | | | | | | | | Add a refinement to SLOT1BINFULL() that fixes the problem reported in SF bug #623669: only try (e.g.) __rdiv__ before __div__ if the right class actually overrides it. Also backport a test for a feature that broke in 2.3 (__dict__ of a new-style class with a user-defined metaclass should be a proxy).
* Backport MAL's patch for bug #659709: bogus computation of float lengthRaymond Hettinger2003-01-021-0/+26
|
* Add test for SF #658106. Will backport.Neal Norwitz2002-12-241-0/+4
|
* Fix typo in abstract.c which caused __rpow__ to not be invoked.Raymond Hettinger2002-12-071-0/+5
| | | | | Added related testcase. Closes SF bug #643260.
* Backport 1.72:Neal Norwitz2002-11-071-0/+6
| | | | Fix for bug #626172: crash using unicode latin1 single char
* Backport 1.6->1.7: Skip the test_nocaret test when running as jython.Finn Bock2002-11-061-1/+4
| | | | Jython happens to add a caret in this case too.
* Backport 1.8->1.9: Make the test pass for jython where there are noFinn Bock2002-11-061-3/+7
| | | | sys.executable.
* Fix SF # 631066, running regrtest in user mode failsNeal Norwitz2002-11-031-1/+21
| | | | | Try to write to TESTFN, if that fails, try TESTFN in /tmp If that fails, print a warning and go on.
* Patch #631972: Adds an is_jython flag.Finn Bock2002-11-011-0/+2
|
* Backport:Neal Norwitz2002-10-181-0/+12
| | | | | | Fix SF # 624982, Potential AV in slot_sq_item, by Greg Chapman Don't crash when getting value of a property raises an exception
* Backporting urlparse.py:1.34, test_urlparse.py:1.8:Guido van Rossum2002-10-141-0/+5
| | | | | Fix for 1.33: urlsplit() should only add '//' if scheme != ''. [SF bug 620705]
* Use \n as line separator in stead of \r\n, which causes problems in ↵Jack Jansen2002-10-102-10/+10
| | | | MacPython 2.2.
* Backport of 1.7:Jack Jansen2002-10-101-4/+4
| | | | | Reorganized so the test is skipped if os.popen() doesn't exist (in stead of fail ing).
* TheTim Peters2002-10-081-1/+1
| | | | | | | | | | | | | | 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.
* Fix some code that was added to the r22-maint branch to allow it to work withFred Drake2002-10-082-1/+68
| | | | | | arbitrary versions of Expat. Not applicable to Python 2.3, which will incorporate an Expat that does not need this crutch.
* Backport, at the reqest of Kevin Jacobs:Guido van Rossum2002-10-071-0/+22
| | | | | | | | | | | - Changed new-style class instantiation so that when C's __new__ method returns something that's not a C instance, its __init__ is not called. [SF bug #537450] XXX This is arguably a semantic change, but it's hard to imagine a reason for wanting to depend on the old behavior. If problems with this are reported within a week of the release of 2.2.2 beta 1, we may revert this change.
* Backport:Michael W. Hudson2002-10-071-0/+16
| | | | | | | | | | | | | | 2002/08/11 12:23:04 lemburg Python/bltinmodule.c 2.262 2002/08/11 12:23:04 lemburg Objects/unicodeobject.c 2.162 2002/08/11 12:23:03 lemburg Misc/NEWS 1.461 2002/08/11 12:23:03 lemburg Lib/test/test_unicode.py 1.65 2002/08/11 12:23:03 lemburg Include/unicodeobject.h 2.39 Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level. u'%c' will now raise a ValueError in case the argument is an integer outside the valid range of Unicode code point ordinals. Closes SF bug #593581.
* This has no hope of working under -O. Skip it then instead of failing.Tim Peters2002-10-071-0/+3
|
* Whitespace normalization.Tim Peters2002-10-0710-24/+22
|
* Aargh! The 2.3 version of this file requires "from test.test_supportGuido van Rossum2002-10-061-1/+1
| | | | | import run_suite", but the 2.2.2 version requires "from test_support import run_suite" ... :-(
* Backport:Guido van Rossum2002-10-061-2/+4
| | | | | Make sure the email test suite can be run both stand-alone and under supervision of regrtest.py.
* Backporting of email 2.4 from Python 2.3. Many newly added modules,Barry Warsaw2002-10-042-1124/+11
| | | | | | | | some updated modules, updated documentation, and updated tests. Note that Lib/test/regrtest.py added test_email_codecs to the expected skips for all platforms. Also note that test_email_codecs.py differs slightly from its Python 2.3 counterpart due to the difference in package location for TestSkipped.
* Fix for the recursion_level bug Armin Rigo reported in sfMichael W. Hudson2002-10-021-0/+216
| | | | | | | 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 ;-).