summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports, clean up trailing whitespace.Fred Drake2002-01-051-2/+0
|
* Check for time.struct_time in addition to tuples. Use 3 charactersMartin v. Löwis2002-01-051-0/+14
| | | | for zone hours. Fixes #499169.
* SF Patch #494867 test file methodsNeal Norwitz2002-01-011-0/+29
| | | | | | Test that the file methods raise ValueError when called on a closed file. Test .isatty() Test name, closed attributes
* test_support: add a docstring to vereq().Tim Peters2001-12-292-2/+11
| | | | test_complex: repair new test's usage of vereq().
* SF Patch #497487 add test to compare conjugate of a complex numberNeal Norwitz2001-12-291-1/+4
|
* SF Patch #494873 add tests for complex numbers including calls to int()/long()Neal Norwitz2001-12-291-0/+21
|
* SF Patch #494874 add tests for int()/long() invalid parametersNeal Norwitz2001-12-291-0/+23
|
* SF Patch #494872 test repr() of a built-in moduleNeal Norwitz2001-12-291-0/+1
|
* SF Patch #494876, test invalid parameters to pow()Neal Norwitz2001-12-291-0/+20
|
* Fix for SF bug ##497426: can't deepcopy recursive new objectsGuido van Rossum2001-12-281-1/+10
| | | | | | | | deepcopy(), _reconstruct(): pass the memo to the other function, so that recursive data structures built out of new-style objects may be deeply copied correctly. 2.2.1 bugfix!
* Merge of the release22 branch changes back into the trunk.Barry Warsaw2001-12-211-0/+7
|
* test_parseaddr_empty(): New test for assuring thatBarry Warsaw2001-12-201-0/+4
| | | | | Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty string. Built on rfc822, this used to return None.
* Whitespace normalization.Tim Peters2001-12-201-1/+0
|
* Add test for pickling new-style class with custom metaclass.Guido van Rossum2001-12-191-0/+12
|
* Add some additional tests that check more proxy behaviors.Fred Drake2001-12-191-0/+18
|
* Fix the test control support for the pickle & cPickle tests so the tests runFred Drake2001-12-192-8/+22
| | | | under regrtest.
* The test using class initarg failed, because it was lacking aGuido van Rossum2001-12-191-0/+3
| | | | __safe_for_unpickling__ attribute.
* Don't call resetwarnings(). Be more restrictive in what we filter outGuido van Rossum2001-12-151-3/+1
| | | | instead.
* Added test_socketserver and test_unicode_file to tests expected to beJack Jansen2001-12-141-0/+2
| | | | | skipped on Mac OS X. Not sure yet about test_locale.py: this may be due to my copy of Mac OS X (although it talks english fine enough).
* (Merge into trunk.)Guido van Rossum2001-12-141-0/+10
| | | | | | | | | | | | | | | | | Fix for SF bug #492345. (I could've sworn I checked this in, but apparently I didn't!) This code: class Classic: pass class New(Classic): __metaclass__ = type attempts to create a new-style class with only classic bases -- but it doesn't work right. Attempts to fix it so it works caused problems elsewhere, so I'm now raising a TypeError in this case.
* Undo inadvertent change to test_scope in previous checkinJeremy Hylton2001-12-131-2/+1
|
* Add a comment explaining what these tests are for, and where to look forFred Drake2001-12-131-0/+3
| | | | tests of complex().
* Ensure that complex() only accepts a string argument as the first arg,Fred Drake2001-12-131-0/+8
| | | | | and only if there is no second arg. This closes SF patch #479551.
* Update output generated by test_scopeJeremy Hylton2001-12-131-1/+1
|
* Add test for SF bug [ #492403 ] exec() segfaults on closure's func_codeJeremy Hylton2001-12-131-2/+10
|
* Very small test suite for the calendar module, mostly to check a constraintFred Drake2001-12-121-0/+34
| | | | | on the return values from isleap(). Also checks firstweekday() and setfirstweekday().
* Fiddle test_class so it passes with -Qnew.Tim Peters2001-12-111-5/+20
|
* Fiddle test_augassign so it passes under -Qnew.Tim Peters2001-12-111-3/+10
|
* Ignore SIGXFSZ. Fixes #490453.Martin v. Löwis2001-12-111-0/+9
|
* Additional coverage tests by Neil Norwitz.Guido van Rossum2001-12-113-0/+87
| | | | (SF patch #491418, #491420, #491421.)
* Regression test for SF bug #478534 -- exceptions could "leak" into a weakrefFred Drake2001-12-101-0/+25
| | | | callback.
* Skipping some tests by adding the usual jython conditional test around:Finn Bock2001-12-101-24/+27
| | | | | | | | | - the repr of unicode. Jython only add the u'' if the string contains char values > 255. - A unicode arg to unicode() is perfectly valid in jython. - A test buffer() test. No buffer() on Jython This closes patch "[ #490920 ] Jython and test_unicode".
* A workaround for the missing buffer() builtin in jython.Finn Bock2001-12-091-0/+6
| | | | This closes patch "[ #490850 ] Jython and test_StringIO".
* bug #133283, #477728, #483789, #490573Fredrik Lundh2001-12-092-3/+9
| | | | | | | backed out of broken minimal repeat patch from July also fixed a couple of minor potential resource leaks in pattern_subx (Guido had already fixed the big one)
* test(): Avoid a UnboundLocalError when a method is missing from both the stringFinn Bock2001-12-091-0/+1
| | | | | | module and from string methods. This closes patch "[ #490811 ] Jython and test_string".
* Moved a print statement outside the jython platform test. OtherwiseFinn Bock2001-12-091-1/+1
| | | | | the output fails to compare correctly for jython. This change was part of the original patch #403666.
* The initial patch #468662 was not applied quite verbatim. This should oneFinn Bock2001-12-091-1/+2
| | | | | | will fix the remaining Jython issues. This closes patch "[ #490411 ] Jython and test_grammar.py".
* Refcounting isn't available in Jython. Putting the jython test around it.Finn Bock2001-12-091-8/+9
| | | | This closes patch "[ #490414 ] Jython and test_socket".
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-081-1/+1
| | | | | | | | | | | | | type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
* Enable support for jython:Finn Bock2001-12-081-4/+11
| | | | | | | | | 1. Acknowledge the welknown difference that jython allows continue in the finally clause. 2. Avoid using _testcapi when running with jython. This closes patch "[ #490417 ] Jython and test_exceptions"
* Remove erroneous and confusing comment -- sre patterns *can* beGuido van Rossum2001-12-081-2/+2
| | | | | pickled and we do *not* expect exceptions from either pickle or cPickle.
* SF patch 490393: test___all__ and Jython; from Finn Bock.Tim Peters2001-12-071-3/+4
| | | | Don't even try to import _socket when running under Jython.
* I found that when run as a script, this test suite ran its testsGuido van Rossum2001-12-071-6/+6
| | | | | | twice! Fixed this by avoiding the import of test_email, which loads the module a second time in that situation, and fiddled the __main__ section to resemble other test suites using unittest.
* Align the number of %s with the number of format arguments.Finn Bock2001-12-071-2/+2
| | | | This closes patch "[ #490330 ] String format bug in test_b2."
* Move import dbhash out of test_sundry and into test_bsddb,Guido van Rossum2001-12-072-1/+1
| | | | so that test_sundry won't fail if the bsddb module is absent.
* Attribute nodes did not always get their ownerDocument and ownerElementFred Drake2001-12-062-0/+30
| | | | properly set. This fixes that.
* SF bug #488514: -Qnew needs workTim Peters2001-12-062-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Big Hammer to implement -Qnew as PEP 238 says it should work (a global option affecting all instances of "/"). pydebug.h, main.c, pythonrun.c: define a private _Py_QnewFlag flag, true iff -Qnew is passed on the command line. This should go away (as the comments say) when true division becomes The Rule. This is deliberately not exposed to runtime inspection or modification: it's a one-way one-shot switch to pretend you're using Python 3. ceval.c: when _Py_QnewFlag is set, treat BINARY_DIVIDE as BINARY_TRUE_DIVIDE. test_{descr, generators, zipfile}.py: fiddle so these pass under -Qnew too. This was just a matter of s!/!//! in test_generators and test_zipfile. test_descr was trickier, as testbinop() is passed assumptions that "/" is the same as calling a "__div__" method; put a temporary hack there to call "__truediv__" instead when the method name is "__div__" and 1/2 evaluates to 0.5. Three standard tests still fail under -Qnew (on Windows; somebody please try the Linux tests with -Qnew too! Linux runs a whole bunch of tests Windows doesn't): test_augassign test_class test_coercion I can't stay awake longer to stare at this (be my guest). Offhand cures weren't obvious, nor was it even obvious that cures are possible without major hackery. Question: when -Qnew is in effect, should calls to __div__ magically change into calls to __truediv__? See "major hackery" at tail end of last paragraph <wink>.
* Fix appendChild() and insertBefore() (and replaceChild() indirectly) whenFred Drake2001-12-062-0/+55
| | | | | the node being added is a fragment node. This closes SF bug #487929.
* sys.platform on Mac OS X is now "darwin", without any version number appended.Jack Jansen2001-12-052-2/+2
| | | | This should probably go into NEWS (who's responsible for that?).
* Fix SF bug #489581: __slots__ leak.Guido van Rossum2001-12-051-0/+34
| | | | | | It was easier than I thought, assuming that no other things contribute to the instance size besides slots -- a pretty good bet. With a test suite, no less!