summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Add getpreferredencoding. Support @euro modifiers. Fixes #554676.Martin v. Löwis2002-11-031-0/+2
| | | | The @euro part is backported to 2.2.3.
* 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. Will backport.
* Skip test_dbm if we can't write to the fileNeal Norwitz2002-11-021-31/+43
| | | | | Cleanup (remove) the file(s) after we are done with the test. (Fixes problem on snake farm)
* Patch #631972: Adds an is_jython flag.Finn Bock2002-11-011-0/+2
|
* [SF bug 631713] use the import exeption message in the TestFailedFinn Bock2002-11-011-3/+3
| | | | exception.
* Ad test_funky_hyphens() to test some screwy edge cases reported in SFGreg Ward2002-10-311-5/+18
| | | | | | | bug #596434. (Alas, I don't think this completely covers that bug.) Remove 'wrapper' argument from BaseTestCase.check_split() -- it's not actually needed.
* Added test for this fix to classobject.c:Guido van Rossum2002-10-291-0/+27
| | | | | | | | Since properties are supported here, is possible that instance_getattr2() raises an exception. Fix all code that made this assumption. Backport candidate.
* Remove unnecessary output file.Fred Drake2002-10-281-42/+0
|
* Add a test of interaction between & and extra replacements.Fred Drake2002-10-281-8/+13
| | | | | Remove extra noise from the output when there are no errors, and say more in the exception when there are errors.
* Patch #613256: Add nescape method to xml.sax.saxutils.Martin v. Löwis2002-10-262-2/+17
|
* Implement a safer and more predictable interpolation approach.Fred Drake2002-10-251-1/+16
| | | | Closes SF bug #511737.
* Add tests for both raw and non-raw versions of the items() methods.Fred Drake2002-10-251-0/+26
|
* Remove useless output file.Fred Drake2002-10-251-9/+0
|
* Convert to PyUnit.Fred Drake2002-10-251-293/+263
|
* Added (very) minimal tests of the RawConfigParser class.Fred Drake2002-10-251-16/+35
| | | | | Moved the write() test to near the end of the file since it screws up font-lock. ;-(
* Fix for bug #626172: crash using unicode latin1 single charMarc-André Lemburg2002-10-231-0/+6
| | | | Python 2.2.3 candidate.
* Fix SF # 624982, Potential AV in slot_sq_item, by Greg ChapmanNeal Norwitz2002-10-181-0/+12
| | | | Don't crash when getting value of a property raises an exception
* Update to Unicode 3.2 database.Martin v. Löwis2002-10-182-3/+3
|
* Continue to work even though the test can be named test.test_regexFred Drake2002-10-171-1/+1
| | | | these days.
* Don't call warnings.resetwarnings(); that does bad things that causeFred Drake2002-10-171-5/+4
| | | | | | 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.
* Remove spurious cruft from the output.Fred Drake2002-10-171-1/+1
|
* Make sure we test urlsplit() / urlunsplit() directly, rather thanFred Drake2002-10-161-12/+40
| | | | | | guessing that urlparse() / urlunparse() use them. Add tests of urldefrag().
* Patch #572628: Optional timeouts for put and get.Martin v. Löwis2002-10-151-2/+37
|
* For some reason (probably cut and paste), __ipow__ for new-styleGuido van Rossum2002-10-151-0/+11
| | | | | | | | | | | | | | 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): ...
* Fix for 1.33: urlsplit() should only add '//' if scheme != ''.Guido van Rossum2002-10-141-1/+6
| | | | Will add test and backport.
* A test for the recent overflow-in-format-crash bug.Michael W. Hudson2002-10-111-2/+14
| | | | | Only runs when sys.maxint == 2**32 - 1; different things go wrong on a 64-bit box.
* Remove more DOS support.Martin v. Löwis2002-10-101-61/+0
|
* Add special consideration for rlcompleter. As a side effect ofGuido van Rossum2002-10-091-1/+12
| | | | | | | | | | | | | | | | 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.
* Logic for determining whether skipping test_pep277 is expected: whetherTim Peters2002-10-091-1/+8
| | | | | | ths "should be" skipped depends on os.path.supports_unicode_filenames, not really on the platform. Fiddled the expected-skip constructor appropriately.
* 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. I'll backport this to the 2.2 branch next.
* Add os.path.supports_unicode_filenames for all platforms,Mark Hammond2002-10-082-6/+5
| | | | | | 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.
* Use escaped Unicode literals, according to PEP 8.Martin v. Löwis2002-10-071-12/+11
|
* Add test_pep277 to the expected skips on Linux. (This test seems toGuido van Rossum2002-10-061-0/+1
| | | | | 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.)
* Make sure the email test suite can be run both stand-alone and underGuido van Rossum2002-10-061-2/+4
| | | | supervision of regrtest.py. Will backport to 2.2.2.
* This test fails on Win98, which is fine, but when it failed it leftTim Peters2002-10-051-6/+17
| | | | | 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.
* Tests for pep277 - Unicode file names on Windows NT.Mark Hammond2002-10-032-0/+110
|
* Patch 594001: PEP 277 - Unicode file name support for Windows NT.Mark Hammond2002-10-031-0/+4
|
* Fix an endcase bug: initial_indent was ignored when the text was shortGuido van Rossum2002-10-021-3/+13
| | | | enough to fit in one line.
* Fix for the recursion_level bug Armin Rigo reported in sfMichael W. Hudson2002-10-021-0/+20
| | | | | | | 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 ;-).
* Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.Martin v. Löwis2002-09-301-1/+58
|
* Patch #544740: test_commands test fails under CygwinJason Tishler2002-09-301-5/+7
| | | | Relax regular expression to handle spaces in user and group names.
* Whitespace normalization (get rid of tabs).Guido van Rossum2002-09-291-4/+4
|
* Allow internal whitespace in keys.Fred Drake2002-09-271-0/+6
| | | | Closes SF bug #583248; backporting to r22-maint branch.
* Added regression test for SF bug #561822: has_option() case sensitive.Fred Drake2002-09-271-0/+5
|
* SF bug 613233: test_threadedtempfile hangsTim Peters2002-09-251-6/+4
| | | | | | | | | | | | | | 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.
* Fix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce AthertonNeal Norwitz2002-09-251-0/+5
| | | | | | Add a test too. urljoin() would make file:/tmp/foo instead of file:///tmp/foo Bugfix candidate, I will backport.
* Add regression test for a bug found in the version of the markupbaseFred Drake2002-09-251-0/+6
| | | | | | 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.
* Brett's fixes for various bugs and coding issues. Closes SF patch #Barry Warsaw2002-09-231-7/+26
| | | | | 593560, with some minor cleanups, line folding and whitespace normalization by Barry.
* Back out multifile.py 1.19 and 1.20. Fixes #514676.Martin v. Löwis2002-09-221-0/+66
|
* Suppress hex/oct constant warnings in <string> on 64-bit platforms,Guido van Rossum2002-09-191-0/+5
| | | | because there test_grammar.py pulls them out of strings there.