Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | It's "gopherlib" not "gopher". | Barry Warsaw | 2001-01-24 | 1 | -1/+1 |
| | |||||
* | added a few more __all__ lists | Skip Montanaro | 2001-01-23 | 1 | -0/+8 |
| | | | | fixed typo in ihooks docstring | ||||
* | Restore alphabetic order. Also try to import rlcompleter and curses, but | Tim Peters | 2001-01-23 | 1 | -7/+15 |
| | | | | don't fail if they're not available. | ||||
* | Add simple test of list comprehension that uses a name that isn't | Jeremy Hylton | 2001-01-23 | 2 | -0/+7 |
| | | | | | otherwise used in the same code block. (Not sure this is the right place, but there is no test_list_comprehensions.py.) | ||||
* | - Use "exec ... in dict" to avoid having to walk on eggshells; locals | Guido van Rossum | 2001-01-22 | 1 | -14/+20 |
| | | | | | | | | | no don't have to start with underscore. - Add spaces after commas in argument lists. - Only test dbhash if bsddb can be imported. (Wonder if there are more like this?) | ||||
* | Typo repair. | Tim Peters | 2001-01-22 | 1 | -1/+1 |
| | |||||
* | Reorganize pickle/cPickle testing so the tests pass regardless of the order | Tim Peters | 2001-01-22 | 4 | -170/+157 |
| | | | | they're run. | ||||
* | The "user" module cannot reasonably be tested. Moved to the end (and | Fred Drake | 2001-01-22 | 1 | -2/+6 |
| | | | | | | commented it out), and added an explanation as to *why*. Added period to docstring. | ||||
* | OK, changed my mind once more on this. The comparison hierarchy is | Guido van Rossum | 2001-01-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | now None < all numeric types < all other types so that once again map(max, Squares(3), Squares(2)) equals [0, 1, 4] | ||||
* | Numeric-smelling objects now once again compare smaller than | Guido van Rossum | 2001-01-22 | 1 | -1/+1 |
| | | | | non-numeric ones, so 4 < None again in the 'map' test. | ||||
* | Finn Bock (SF patch #103345): Avoid outdated exec form in | Guido van Rossum | 2001-01-22 | 1 | -2/+2 |
| | | | | test_class.py. | ||||
* | Patch #103343: Allow the important test_pkg to succeed under Jython. | Tim Peters | 2001-01-21 | 2 | -6/+6 |
| | |||||
* | Patch #103344: Sort dicts from extcall for easier comparison with Jython. | Tim Peters | 2001-01-21 | 2 | -41/+49 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-01-21 | 1 | -2/+1 |
| | |||||
* | more __all__ updates | Skip Montanaro | 2001-01-20 | 1 | -0/+11 |
| | |||||
* | added some tests for urlencode | Skip Montanaro | 2001-01-20 | 1 | -0/+16 |
| | |||||
* | added __all__ lists to a number of Python modules | Skip Montanaro | 2001-01-20 | 2 | -0/+56 |
| | | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation. | ||||
* | docstring typo | Skip Montanaro | 2001-01-20 | 1 | -1/+1 |
| | |||||
* | Better error message if ucnhash cannot be found (obscure attribute | Fredrik Lundh | 2001-01-20 | 1 | -0/+9 |
| | | | | | | errors aren't that helpful), or doesn't contain what's expected from it. Also tweaked the test script so it compiles even if ucnhash is missing. | ||||
* | Now that Marc-Andre has retracted unistr(), remove the tests. | Guido van Rossum | 2001-01-19 | 2 | -12/+0 |
| | |||||
* | Use a saner test filename, to work on Windows. | Guido van Rossum | 2001-01-19 | 1 | -3/+1 |
| | |||||
* | Add some regression tests of coredump bugs in funcobject.c 2.31. Also | Barry Warsaw | 2001-01-19 | 1 | -0/+16 |
| | | | | | added a test of a coredump that would occur when del'ing func_defaults (put here for convenience). | ||||
* | Change verify() function to raise TestFailed, not AssertionError. | Guido van Rossum | 2001-01-19 | 2 | -8/+8 |
| | | | | | | (I realize that I didn't really test this, because all the tests succeed, so verify() never raised an AssertionError -- but the test suite still succeeds, so I'm not too worried.) | ||||
* | improved the ucnhash test a bit | Fredrik Lundh | 2001-01-19 | 2 | -3/+11 |
| | |||||
* | added "getcode" and "getname" methods to the ucnhash module (they're | Fredrik Lundh | 2001-01-19 | 1 | -0/+17 |
| | | | | | probably more useful for the test code than for any applications, but one never knows...) | ||||
* | refactored the unicodeobject/ucnhash interface, to hide the | Fredrik Lundh | 2001-01-19 | 1 | -8/+6 |
| | | | | | | | implementation details inside the ucnhash module. also cleaned up the unicode copyright blurb a little; Secret Labs' internal revision history isn't that interesting... | ||||
* | urllib.py very recently changed to produce uppercase escapes, but no | Tim Peters | 2001-01-19 | 1 | -3/+8 |
| | | | | corresponding changes were made to its std test. | ||||
* | Whitespace normalization. | Tim Peters | 2001-01-19 | 1 | -1/+1 |
| | |||||
* | test_urllib is failing on Windows. I don't know why, but I can at least | Tim Peters | 2001-01-19 | 1 | -5/+5 |
| | | | | change the test to give a clue about *where* it's failing. | ||||
* | Use constructor form of "raise"; normalize <wink> docstrings. | Tim Peters | 2001-01-19 | 1 | -9/+5 |
| | |||||
* | Jeremy's patch #103323: trivial tests of all untested modules. | Tim Peters | 2001-01-19 | 2 | -0/+94 |
| | |||||
* | make error msg more informative when test of exec fails | Jeremy Hylton | 2001-01-19 | 1 | -1/+1 |
| | |||||
* | add test for SyntaxError on | Jeremy Hylton | 2001-01-19 | 1 | -1/+7 |
| | | | | | def f(a): global a | ||||
* | add test of bastion and rexec to std regression test suite | Jeremy Hylton | 2001-01-19 | 2 | -0/+13 |
| | |||||
* | Add test that ensures hash() of objects defining __cmp__ or __eq__ but | Guido van Rossum | 2001-01-18 | 1 | -0/+23 |
| | | | | not __hash__ raises TypeError. | ||||
* | Add test that ensures hash([]) and hash({}) raise TypeError. | Guido van Rossum | 2001-01-18 | 1 | -0/+6 |
| | |||||
* | Since I'm about to check in a change to the recursion-detection code | Guido van Rossum | 2001-01-18 | 1 | -17/+10 |
| | | | | | for comparisons that outlaws requets for ordering on recursive data structures, remove the tests for ordering recursive data structures. | ||||
* | A dumb test for the dumdbm module. | Guido van Rossum | 2001-01-18 | 2 | -0/+40 |
| | |||||
* | Add test for comparing recursive data types. | Guido van Rossum | 2001-01-18 | 1 | -1/+42 |
| | |||||
* | Add test for misbehaving rich comparisons (always returning 0) -- | Guido van Rossum | 2001-01-18 | 1 | -1/+23 |
| | | | | these fall back to __cmp__. | ||||
* | Rich comparison tests | Guido van Rossum | 2001-01-18 | 2 | -0/+364 |
| | |||||
* | Whitespace normalization. Leaving tokenize_tests.py alone for now. | Tim Peters | 2001-01-18 | 9 | -45/+42 |
| | |||||
* | a bold attempt to fix things broken by MAL's verify patch: import | Fredrik Lundh | 2001-01-17 | 48 | -51/+54 |
| | | | | 'verify' iff it's used by a test module... | ||||
* | Marc-Andre must not have run these tests -- they used verify() but | Guido van Rossum | 2001-01-17 | 3 | -3/+5 |
| | | | | | didn't import it. Also got rid of some inconsistent spaces inside parentheses in test_gzip.py. | ||||
* | This patch removes all uses of "assert" in the regression test suite | Marc-André Lemburg | 2001-01-17 | 70 | -412/+436 |
| | | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum. | ||||
* | Stop creating an unbounded number of "Jack is my hero" files under Windows. | Tim Peters | 2001-01-17 | 1 | -0/+1 |
| | | | | | Not that Jack doesn't deserve them, but saying it so often cheapens the sentiment. | ||||
* | This patch adds a new builtin unistr() which behaves like str() | Marc-André Lemburg | 2001-01-17 | 2 | -0/+12 |
| | | | | | | | | | | except that it always returns Unicode objects. A new C API PyObject_Unicode() is also provided. This closes patch #101664. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum. | ||||
* | Fix a bizarre typo in the helper class ComparableException: the | Guido van Rossum | 2001-01-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | __getattr__() method, which clearly (like the other methods) was intended to pass the __getattr__() call on to the self.err object, mistakenly returned getattr(self, self.err) rather than getattr(self.err, attr). Since self.err is not a string, this always raises a TypeError. Apparently that doesn't bother for the one attribute for which __getattr__() is actually called ('__coerce__'), but it broke the rich comparisons stuff that I'm trying to get into shape, so I'm fixing this now. (I could also simply remove the __getattr__() method, but fixing it seems more in the spirit of what the ComparableException class is trying to do.) | ||||
* | Changed name of codec to full path name. This allows importing | Marc-André Lemburg | 2001-01-17 | 1 | -1/+1 |
| | | | | the test_charmapcodec test via the test package. | ||||
* | Use __name__ instead of "test_regex" as the module name in the | Guido van Rossum | 2001-01-17 | 1 | -1/+1 |
| | | | | | warnings.filterwarnings() call. This suppresses the warning when the module is imported with its full name (test.test_regex) too. |