summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Hack to workaround bug #445984: attempt to import _socket beforeGreg Ward2001-08-041-0/+4
| | | | | | | starting the test suite proper. If _socket fails to build, that will make this test fail with an ImportError -- handled by the test harness as "no such module _socket" -- instead of an AttributeError deep in CGIHTTPServer.
* Derived from SF patch #446899 Permit import of .pyw under Windows, fromTim Peters2001-08-041-39/+46
| | | | David Bolen.
* Don't use any characters C doesn't guarantee are safe for text-mode files.Tim Peters2001-08-031-12/+12
| | | | This should stop the bizarre translations Jack was getting from Mac CVS.
* Fix stupid bug: when migrating these tests from the Zope repository, theFred Drake2001-08-031-14/+20
| | | | | | | | | names of the test methods were not changed from the Zope-standard "check" names to the Python-standard "test_" names, so the tests were not actually being run. Added test of hexadecimal character references as a regression check for SF bug #445196.
* The test opened the binary test data files in text mode! Fixed.Jack Jansen2001-08-031-3/+3
|
* Make sure that WeakValueDictionary[] raises KeyError instead of TypeErrorFred Drake2001-08-031-0/+5
| | | | for keys that are not in the dictionary.
* This test failed under python -O.Tim Peters2001-08-021-3/+7
| | | | | rewrite_file(): Delete both .pyc and .pyo leftovers, and explicitly close the new source file after writing to it.
* Unit test for improved package import semantics.Guido van Rossum2001-08-021-0/+74
| | | | | Original by Alex Coventry (in SF patch #441791), adapted to the standard regression test framework.
* Merge of descr-branch back into trunk.Tim Peters2001-08-022-2/+837
|
* s/endswith/startswith/Tim Peters2001-08-011-1/+1
|
* Rewritten version of Finn Bock's SF patch #446907 (Allow jython toTim Peters2001-08-011-1/+4
| | | | complete test_import).
* test_codeup should not have had an expected-output file; removing it.Tim Peters2001-07-301-10/+0
|
* Add tests for getattr() and hasattr() with non-string argsJeremy Hylton2001-07-302-0/+24
|
* Fix for SF bug [ #443866 ] Evaluating func_code causing core dumpJeremy Hylton2001-07-302-0/+14
| | | | Add test that calls eval with a code object that has free variables.
* Fix when pyexpat not builtJeremy Hylton2001-07-301-0/+1
| | | | | Import pyexpat first so that import error occurs when it is not available.
* Patch #442866: Tests for codeop.py.Martin v. Löwis2001-07-302-0/+100
|
* One more crack at join(): stop trying to pretend this isn't a mass ofTim Peters2001-07-271-0/+7
| | | | special cases. test_pkg works again on Windows.
* Change ntpath.join() so that join("d:/", "/whatever") returnsTim Peters2001-07-261-0/+1
| | | | | | | d:/whatever instead of /whatever. While I'm afraid changing isabs() to be *consistent* with this would break lots of code, it makes best sense for join() to do it this way. Thanks to Alex Martelli for pushing back on this one!
* SF bug #444510: int() should guarantee truncation.Tim Peters2001-07-261-0/+13
| | | | It's guaranteed now, assuming the platform modf() works correctly.
* Fix for bug #444493: u'\U00010001' segfaults with current CVS onMarc-André Lemburg2001-07-251-1/+2
| | | | wide builds.
* Make this test work under Windows as well.Fred Drake2001-07-231-2/+5
|
* Test for the "glob" module, contributed by Nick Mathewson.Fred Drake2001-07-231-0/+110
| | | | | Heavily modified so this doesn't break on Windows. This closes SF patch #441175.
* Whitespace normalization.Tim Peters2001-07-231-4/+3
| | | | Note: This test fails on Windows. Don't know why yet.
* Tests for the "commands" module, contributed by Nick Mathewson.Fred Drake2001-07-231-0/+45
| | | | This closes SF patch #440291.
* New tests by Nick Mathewson, for the fpformat module.Fred Drake2001-07-231-0/+67
| | | | This closes SF patch #440290.
* On WIndows, skip the part of test_dircache that can't work on Windows.Tim Peters2001-07-211-9/+15
|
* Whitespace normalization, plus:Tim Peters2001-07-213-13/+13
| | | | | | + test_quopri.py relied on significant trailing spaces. Fixed. + test_dircache.py (still) doesn't work on Windows (directory mtime on Windows doesn't work like it does on Unix).
* Use string.ascii_letters instead of string.letters (SF bug #226706).Fred Drake2001-07-201-1/+1
|
* Make the unicode-escape and the UTF-16 codecs handle surrogatesMarc-André Lemburg2001-07-201-0/+8
| | | | | | | | correctly and thus roundtrip-safe. Some minor cleanups of the code. Added tests for the roundtrip-safety.
* Regression test for the dircache module, contributed by Nick Mathewson.Fred Drake2001-07-191-0/+62
| | | | | Modified by Fred Drake. This closes SF patch #440827.
* Test for the repr module, contributed by Nick Mathewson.Fred Drake2001-07-191-0/+108
| | | | This closes SF patch #440826.
* Add some test cases for ntpath.join().Tim Peters2001-07-191-3/+19
|
* Cosmetic: break the long lines in test_ntpath.py, and get rid of itsTim Peters2001-07-192-9/+14
| | | | expected-output file.
* Added function xml.sax.saxutils.quoteattr().Fred Drake2001-07-192-2/+25
| | | | This closes SF bug #440351. It should not be moved to Python 2.1.1.
* Remove a couple of lines from the test that proved not to be portable toFred Drake2001-07-171-2/+0
| | | | all platforms that offer tempnam().
* Start of a test suite for the "os" module -- this only tests the temporaryFred Drake2001-07-171-0/+60
| | | | | file management functions that have just been made available on more platforms.
* Use the "st" versions of the "ast" calls in the parser module -- there isFred Drake2001-07-171-2/+2
| | | | no reason to pretend the syntax trees we're dealing with are abstract.
* Added tests for the new yield support in the parser module.Fred Drake2001-07-171-1/+132
| | | | (Should be merged with descr branch.)
* This has never worked on Windows. Now it does. If it breaks on Unix now,Tim Peters2001-07-161-1/+7
| | | | great, it's your turn to watch it fail for months <0.9 wink>.
* test_basic(): Add a test for "person@dom.ain (User J. Person)" whichBarry Warsaw2001-07-161-0/+12
| | | | | | | | was already correctly parsed (contrary to a comment in Mailman). test_rfc2822_phrases(): RFC 2822 now requires that we allow `.' in phrases, which means we must accept dots in unquoted realname parts. Add a test to check the change in rfc822.py 1.58.
* Add a unit test for sgmllib (needs work, but has already caught problems).Fred Drake2001-07-161-0/+243
| | | | Based on the test for the HTMLParser module.
* Give more useful information about a failing PyUnit-style test.Fred Drake2001-07-161-2/+11
|
* Remove a duplicate test.Fred Drake2001-07-161-1/+0
|
* Part way to allowing "from __future__ import generators" to communicateTim Peters2001-07-161-0/+2
| | | | | | | | | | that info to code dynamically compiled *by* code compiled with generators enabled. Doesn't yet work because there's still no way to tell the parser that "yield" is OK (unlike nested_scopes, the parser has its fingers in this too). Replaced PyEval_GetNestedScopes by a more-general PyEval_MergeCompilerFlags. Perhaps I should not have? I doubted it was *intended* to be part of the public API, so just did.
* Should raise TestSkipped, not ImportError, when deciding to skip theGuido van Rossum2001-07-131-2/+2
| | | | test.
* Having fun on my own time: quicker flat_conjoin; Knights Tour solverTim Peters2001-07-131-113/+123
| | | | simplified and generalized to rectangular boards.
* Remove the last remnants of the hacks to worm around leaks.Tim Peters2001-07-121-12/+3
|
* Repair flawed example.Tim Peters2001-07-121-1/+1
|
* Remove now-unnecessary "from __future__ import nested_scopes" stmts.Tim Peters2001-07-122-10/+6
|
* Remove reference cycle breaking code. The GC now takes care of it.Neil Schemenauer2001-07-121-7/+1
|