Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Oops. A RISCOS patch I forgot to check in. | Guido van Rossum | 2001-03-13 | 1 | -1/+7 |
| | |||||
* | Add test to verify that nested functions with free variables don't | Jeremy Hylton | 2001-03-13 | 2 | -0/+24 |
| | | | | cause the free variables to leak. | ||||
* | Import the nested_scopes feature twice, to exercise the patch introduced | Fred Drake | 2001-03-10 | 1 | -1/+3 |
| | | | | | | | to avoid segfaults when more than one feature is named in the future statement. This tests for regression of SF bug #407394. | ||||
* | Clean up junk files left behind by imp.load_source(). | Tim Peters | 2001-03-04 | 1 | -1/+7 |
| | |||||
* | Replace literal '@test' with TESTFN. | Ka-Ping Yee | 2001-03-02 | 1 | -6/+6 |
| | |||||
* | When catching errors from os.rmdir(), test for os.error, not IOError! | Guido van Rossum | 2001-03-02 | 1 | -3/+3 |
| | |||||
* | Make names in __future__.py bind to class instances instead of 2-tuples. | Tim Peters | 2001-03-02 | 1 | -3/+2 |
| | | | | Suggested on c.l.py by William Tanksley, and I like it. | ||||
* | test_global was broken by some recent checkin. Repairing. | Tim Peters | 2001-03-02 | 2 | -9/+15 |
| | |||||
* | Test interaction of global and nested scopes -- thanks to Samuele Pedroni. | Guido van Rossum | 2001-03-01 | 2 | -0/+66 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-03-01 | 1 | -1/+0 |
| | |||||
* | final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be | Skip Montanaro | 2001-03-01 | 1 | -0/+16 |
| | | | | giving it a slight facelift | ||||
* | Add tests for the .copy() methods of both weak dictionary classes. | Fred Drake | 2001-03-01 | 1 | -1/+15 |
| | |||||
* | Add test case for global stmt at module level. | Jeremy Hylton | 2001-02-28 | 3 | -0/+10 |
| | | | | | Fix test_grammar so that it ignores warning about global stmt at module level in exec. | ||||
* | update output to reflect exception that is now raised | Jeremy Hylton | 2001-02-28 | 1 | -3/+3 |
| | |||||
* | Fix filter for SyntaxErrors | Jeremy Hylton | 2001-02-28 | 1 | -4/+4 |
| | |||||
* | Add regression test for future statements. This adds eight files, but | Jeremy Hylton | 2001-02-28 | 10 | -0/+132 |
| | | | | | seven are not tests in their own right; these files are mentioned in regrtest. | ||||
* | Whitespace normalization. | Tim Peters | 2001-02-28 | 1 | -1/+0 |
| | |||||
* | Added regression test for SF tracker bug #403871: AttributeError in | Fred Drake | 2001-02-28 | 1 | -0/+19 |
| | | | | | | | | | | | | | | ZipFile.__del__() when there was an IOError opening the underlying file in ZipFile.__init__(). This is an odd test: since the exception is in the __del__() method, it is not propogated. This test will trigger it but regrtest.py does not detect the failure (not sure why); we are dependent on it actually being noticed by a user to get a new bug report if it ever fails. ;-( On the other hand, this makes sure that code gets exercised, so a failure could be noticed! | ||||
* | verify that warnings are issued for bogus uses of global | Jeremy Hylton | 2001-02-28 | 2 | -0/+44 |
| | |||||
* | Patch #404680: disables the nis module and enables the dl module when | Andrew M. Kuchling | 2001-02-27 | 1 | -0/+1 |
| | | | | | building under Cygwin. Makes some fixes to the dlmodule in order to compile with Cygwin. | ||||
* | add from __future__ import nested_scopes to strings passed to compile | Jeremy Hylton | 2001-02-27 | 1 | -6/+12 |
| | |||||
* | Patch #403985: Add support for weak-keyed dictionaries | Martin v. Löwis | 2001-02-27 | 2 | -0/+22 |
| | |||||
* | inspect: a module for getting information out of live Python objects | Ka-Ping Yee | 2001-02-27 | 2 | -0/+208 |
| | |||||
* | Preliminary support for future nested scopes | Jeremy Hylton | 2001-02-27 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compile.h: #define NESTED_SCOPES_DEFAULT 0 for Python 2.1 __future__ feature name: "nested_scopes" symtable.h: Add st_nested_scopes slot. Define flags to track exec and import star. Lib/test/test_scope.py: requires nested scopes compile.c: Fiddle with error messages. Reverse the sense of ste_optimized flag on PySymtableEntryObjects. If it is true, there is an optimization conflict. Modify get_ref_type to respect st_nested_scopes flags. Refactor symtable_load_symbols() into several smaller functions, which use struct symbol_info to share variables. In new function symtable_update_flags(), raise an error or warning for import * or bare exec that conflicts with nested scopes. Also, modify handle for free variables to respect st_nested_scopes flag. In symtable_init() assign st_nested_scopes flag to NESTED_SCOPES_DEFAULT (defined in compile.h). Add preliminary and often incorrect implementation of symtable_check_future(). Add symtable_lookup() helper for future use. | ||||
* | Make sure ConfigParser uses .optionxform() consistently; this affects | Fred Drake | 2001-02-26 | 2 | -0/+25 |
| | | | | | | .has_option(), .remove_option(), and .set(). This closes SF tracker #232913. | ||||
* | Add __future__.py to std library, + dull test to verify that assignments | Tim Peters | 2001-02-26 | 2 | -0/+43 |
| | | | | therein are of the proper form. | ||||
* | Additional tests for current, PEP described semantics: | Barry Warsaw | 2001-02-26 | 1 | -3/+36 |
| | | | | | | | | | | | | - func.__dict__ is None until the first attribute is assigned - del func.__dict__ is equivalent to func.__dict__ = None - disallowing assignment to function attribute through unbound method (it was always illegal to assign through bound method). - verifying that setting attribute explicitly on underlying function via meth.im_func is okay. | ||||
* | Describe -s a little more generically. | Barry Warsaw | 2001-02-23 | 1 | -5/+6 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-02-21 | 4 | -5/+4 |
| | |||||
* | Add test case from bug #124981: zlib decompress of sync-flushed data | Andrew M. Kuchling | 2001-02-21 | 2 | -0/+27 |
| | | | | fails | ||||
* | Patch #103854: raises an exception if a non-Attr node is passed to | Andrew M. Kuchling | 2001-02-21 | 1 | -0/+11 |
| | | | | | | NamedNodeMap.setNamedItem(). Martin, should I sync the PyXML tree, too, or do you want to do it? (I don't know if you're wrapping the 0.6.4 release right now.) | ||||
* | Added test for patch #103473: test an unquoted cookie value containing '=' | Andrew M. Kuchling | 2001-02-21 | 2 | -0/+7 |
| | |||||
* | SF patch #103749: implicit tuple + default arg | Jeremy Hylton | 2001-02-19 | 2 | -3/+40 |
| | |||||
* | Add simple section for assert, including assert w/ lambdas | Jeremy Hylton | 2001-02-19 | 2 | -0/+7 |
| | |||||
* | Add test for syntax error on "x = 1 + 1". | Jeremy Hylton | 2001-02-19 | 4 | -22/+13 |
| | | | | Move check_syntax() function into test_support. | ||||
* | detect attempts to repeat anchors (fixes bug #130748) | Fredrik Lundh | 2001-02-18 | 1 | -0/+2 |
| | |||||
* | sre_{parse, compile} no longer define __all__. | Tim Peters | 2001-02-18 | 1 | -2/+0 |
| | |||||
* | - restored 1.5.2 compatibility (sorry, eric) | Fredrik Lundh | 2001-02-18 | 1 | -1/+1 |
| | | | | | - removed __all__ cruft from internal modules (sorry, skip) - don't assume ASCII for string escapes (sorry, per) | ||||
* | removed __all__ from several modules | Skip Montanaro | 2001-02-18 | 1 | -17/+0 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-02-15 | 2 | -5/+4 |
| | |||||
* | bunch more __all__ lists | Skip Montanaro | 2001-02-15 | 1 | -0/+29 |
| | | | | | | also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance) | ||||
* | Patch #103748 from Toby Dickenson: fix typo in test_zlib that turns one | Andrew M. Kuchling | 2001-02-14 | 1 | -1/+1 |
| | | | | test case into a no-op because ''.join('hello world') == 'hello world' | ||||
* | Test section name using some strange characters, including a backslash | Fred Drake | 2001-02-14 | 1 | -2/+7 |
| | | | | (SF bug #132288). | ||||
* | Change doctest exception example to one whose detail hasn't changed since 1.5.2. | Tim Peters | 2001-02-14 | 1 | -2/+2 |
| | |||||
* | Teach doctest about newer "(most recent call last)" traceback spelling. | Tim Peters | 2001-02-13 | 1 | -1/+1 |
| | |||||
* | Added options that use square brackets in their names; this ensures that | Fred Drake | 2001-02-12 | 2 | -89/+50 |
| | | | | | | | | GNOME-style internationalized options can be parsed using ConfigParser (SF bug #131635). Converted the tests to use test_support.verify() instead of output comparison to work. | ||||
* | test_pty started failing on Windows, but if and only if test___all__ was | Tim Peters | 2001-02-12 | 1 | -2/+16 |
| | | | | | | | | | | | | run first. Indirectly due to Skip adding check_all("pty") to test___all__: that caused the expected ImportError due to pty.py trying to import the non-existent FCNTL to get handled by test___all__, leaving a partial module object for pty in sys.modules, which caused the later import of pty via test_pty to succeed. Then test_tpy died with an AttributeError, due to trying to access attributes of pty that didn't exist. regrtest viewed that as a failure rather than the appropriate "test skipped". Fixed by deleting partial module objects in test___all__ when test___all__ handles an ImportError. | ||||
* | __all__ for several more modules | Skip Montanaro | 2001-02-12 | 1 | -0/+11 |
| | |||||
* | Patch by Finn Bock to make test_unicode.py work for Jython. | Marc-André Lemburg | 2001-02-10 | 1 | -5/+10 |
| | |||||
* | Moved SequenceMatcher from ndiff into new std library module difflib.py. | Tim Peters | 2001-02-10 | 2 | -0/+282 |
| | | | | | | | | | Guido told me to do this <wink>. Greatly expanded docstrings, and fleshed out with examples. New std test. Added new get_close_matches() function for ESR. Needs docs, but LaTeXification of the module docstring is all it needs. \CVS: ---------------------------------------------------------------------- |