summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* reload(exceptions) should not raise an ImportError, but should actBarry Warsaw2001-08-131-0/+8
| | | | just like reload(sys). Test that this is so. Closes SF bug #422004.
* Repair Unix-specific assumptions that caused this to fail on Windows.Tim Peters2001-08-131-20/+18
|
* Nick Mathewson: test suite for the class browser support module.Fred Drake2001-08-131-0/+158
|
* Modify _Set to support iteration.Jeremy Hylton2001-08-121-0/+3
| | | | | Otherwise printlist(surprise) will fail with a TypeError, because map is called with an argument that doesn't support iteration.
* - Expand test for dynamic objects.Guido van Rossum2001-08-121-21/+33
| | | | | | - Remove various 'global' directives and move some global definitions inside the test functions that use them -- we have nested scopes so the old hacks using globals are no longer needed.
* Make the output of tests skipped readable (i.e., deliberately break itTim Peters2001-08-121-6/+30
| | | | into indented lines each of which probably fits on a typical screen line).
* dynamics(): add tests for dynamic *instances* (which are currentlyGuido van Rossum2001-08-121-1/+20
| | | | broken). Also fix an invalid reference to C (should be S).
* Test the unary operator changes to the compilerJeremy Hylton2001-08-121-0/+43
|
* Add the list of expected skips for Linux 2.x. Restructured the code aGuido van Rossum2001-08-121-28/+51
| | | | | little bit using a dictionary to avoid more code duplication as more platforms are supported.
* Move line; reported on python-dev by Mark Favas (thanks!).Tim Peters2001-08-121-1/+1
|
* Teach regrtest which tests we *expect* to skip on Win32. Please teach itTim Peters2001-08-121-0/+85
| | | | about your platform too.
* The test assumed that the local pathname convention for "foo" would sort ↵Jack Jansen2001-08-111-2/+4
| | | | before "foo/bar", which is not true on the mac (where they are "foo" and ":foo:bar", respectively; ":foo" would be fine too, but "foo" is the preferred spelling). Fixed by sorting the output.
* Added tests for rich comparison operator functions.Fred Drake2001-08-112-119/+212
| | | | Converted tests to PyUnit.
* Add test for SF bug #442833 (multiple inheritance).Guido van Rossum2001-08-101-0/+14
|
* The message accompanying the TypeError exception on a readonlyGuido van Rossum2001-08-101-1/+1
| | | | attribute changed again.
* Allow AttributeError as well as TypeError for attribute-less objects.Guido van Rossum2001-08-101-1/+1
|
* Patch #441091 from Finn Bock: the more advanced flush options are notAndrew M. Kuchling2001-08-101-15/+20
| | | | | available in java, so only use the advanced flush options if they are defined in the zlib module.
* Check in a testcase for SF bug #449000: re.sub(r'\n', ...) broke.Guido van Rossum2001-08-102-0/+12
|
* Whitespace normalization.Tim Peters2001-08-097-41/+40
|
* Skip test_mhlib on Windows -- too many Unix assumptions.Tim Peters2001-08-091-2/+6
|
* Added tests for operator.floordiv() and operator.truediv().Fred Drake2001-08-092-0/+4
|
* Restore the test for 'object' that I removed when object wasGuido van Rossum2001-08-091-0/+24
| | | | uninstantiable. All is well now.
* Unittests for mhlib, by Nick Mathewson.Guido van Rossum2001-08-091-0/+328
|
* Patch #448474: Add support for tell() and seek() to gzip.GzipFile.Martin v. Löwis2001-08-091-0/+24
|
* A test suite for binary operators, disguised as a rational numberGuido van Rossum2001-08-081-0/+340
| | | | class.
* Add a test that xml.sax.saxutils.XMLGenerator does the right thingFred Drake2001-08-072-1/+18
| | | | | | when quoting attribute values that contain single & double quotes. This provides the rest of the regression test for SF bug #440351.
* Fix the test so it uses IterableUserDict for the "for x in dict" test.Guido van Rossum2001-08-071-2/+2
|
* Remove the test for the 'object' type -- it can no longer beGuido van Rossum2001-08-071-24/+0
| | | | | instantiated. (Its use as a base class is adequately tested by other tests.)
* silence warnings about import *Jeremy Hylton2001-08-071-0/+7
|
* 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
|