Tim Peters
fc35de409b
test_global was broken by some recent checkin. Repairing.
2001-03-02 01:48:16 +00:00
Guido van Rossum
9aa643cf69
Test interaction of global and nested scopes -- thanks to Samuele Pedroni.
2001-03-01 20:35:45 +00:00
Jeremy Hylton
2922ea8235
Add test case for global stmt at module level.
...
Fix test_grammar so that it ignores warning about global stmt at
module level in exec.
2001-02-28 23:49:19 +00:00
Jeremy Hylton
42efed0fc3
update output to reflect exception that is now raised
2001-02-28 23:24:22 +00:00
Jeremy Hylton
62e2c7e3df
Add regression test for future statements. This adds eight files, but
...
seven are not tests in their own right; these files are mentioned in
regrtest.
2001-02-28 17:48:06 +00:00
Jeremy Hylton
8e43cd7929
verify that warnings are issued for bogus uses of global
2001-02-28 01:51:01 +00:00
Martin v. Löwis
5e1633365d
Patch #403985 : Add support for weak-keyed dictionaries
2001-02-27 18:36:56 +00:00
Ka-Ping Yee
6397c7c9a9
inspect: a module for getting information out of live Python objects
2001-02-27 14:43:21 +00:00
Fred Drake
3c823aa4b6
Make sure ConfigParser uses .optionxform() consistently; this affects
...
.has_option(), .remove_option(), and .set().
This closes SF tracker #232913 .
2001-02-26 21:55:34 +00:00
Tim Peters
ffc215a279
Add __future__.py to std library, + dull test to verify that assignments
...
therein are of the proper form.
2001-02-26 21:14:49 +00:00
Andrew M. Kuchling
9a0f98e0a1
Add test case from bug #124981 : zlib decompress of sync-flushed data
...
fails
2001-02-21 02:17:01 +00:00
Andrew M. Kuchling
8b94b1c74a
Added test for patch #103473 : test an unquoted cookie value containing '='
2001-02-21 01:17:54 +00:00
Jeremy Hylton
121b6eb018
SF patch #103749 : implicit tuple + default arg
2001-02-19 23:53:42 +00:00
Jeremy Hylton
f828e2d737
Add simple section for assert, including assert w/ lambdas
2001-02-19 15:54:52 +00:00
Jeremy Hylton
4779399e9f
Add test for syntax error on "x = 1 + 1".
...
Move check_syntax() function into test_support.
2001-02-19 15:35:26 +00:00
Tim Peters
60e23f4cfc
Change doctest exception example to one whose detail hasn't changed since 1.5.2.
2001-02-14 00:43:21 +00:00
Tim Peters
ea4f931cb9
Teach doctest about newer "(most recent call last)" traceback spelling.
2001-02-13 20:54:42 +00:00
Fred Drake
95b96d3941
Added options that use square brackets in their names; this ensures that
...
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.
2001-02-12 17:23:20 +00:00
Tim Peters
9ae2148ada
Moved SequenceMatcher from ndiff into new std library module difflib.py.
...
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: ----------------------------------------------------------------------
2001-02-10 08:00:53 +00:00
Tim Peters
6db54c69a4
Add std test for doctest.
2001-02-10 01:36:47 +00:00
Jeremy Hylton
cafd495dfe
In O_writelines: Replace use of string.joinfields with "".join.
2001-02-09 23:44:22 +00:00
Jeremy Hylton
97a01674b2
update test cases for recent compiler changes: exec/import * in nested
...
functinos and cell vars with */** parameters
2001-02-09 22:56:46 +00:00
Jeremy Hylton
de6024872a
Fix test 9 (caught by ?!ng)
...
Add tests for unbound locals (Nick Mathewson)
2001-02-05 17:35:20 +00:00
Jeremy Hylton
5e7cb240af
Add minimal interface to symtable: _symtable module.
2001-02-02 18:24:26 +00:00
Tim Peters
9ea17ac595
Patch derived from Trent's 101162: a Python/C API testing framework.
...
STILL NEEDS UNIX BUILD CHANGES.
2001-02-02 05:57:15 +00:00
Jeremy Hylton
3faa52ecc4
Allow 'continue' inside 'try' clause
...
SF patch 102989 by Thomas Wouters
2001-02-01 22:48:12 +00:00
Jeremy Hylton
483638c9a8
Undo recent change that banned using import to bind a global, as per
...
discussion on python-dev. 'from mod import *' is still banned except
at the module level.
Fix value for special NOOPT entry in symtable. Initialze to 0 instead
of None, so that later uses of PyInt_AS_LONG() are valid. (Bug
reported by Donn Cave.)
replace local REPR macros with PyObject_REPR in object.h
2001-02-01 20:20:45 +00:00
Fred Drake
41deb1efc2
PEP 205, Weak References -- initial checkin.
2001-02-01 05:27:45 +00:00
Jeremy Hylton
ac25a38841
add test for illegal imports
2001-01-30 01:25:56 +00:00
Jeremy Hylton
619eea6821
PEP 227 implementation
...
test_new: new.code() noew takes two more arguments
test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)
2001-01-25 20:12:27 +00:00
Jeremy Hylton
4588c78faf
PEP 227 implementation
...
New tests cases for nested scopes.
2001-01-25 20:11:23 +00:00
Jeremy Hylton
92e9f29aec
add extra tests to verify that co_varnames is being set up properly
...
also normalize checks for syntax errors and delete commented out
definition of verify.
2001-01-25 17:03:37 +00:00
Guido van Rossum
42756df91c
Fix the test output, now that escapes in repr() of string and Unicode
...
are different (Ping didn't test this).
2001-01-24 21:49:57 +00:00
Guido van Rossum
0fc8b74fc5
Fix the test output, now that escapes in repr() of string and Unicode
...
are different (Ping couldn't test this).
2001-01-24 21:46:18 +00:00
Ka-Ping Yee
fa004ad36c
Show '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.
...
Switch from octal escapes to hex escapes for other nonprintable characters.
2001-01-24 17:19:08 +00:00
Jeremy Hylton
578ceee042
Add simple test of list comprehension that uses a name that isn't
...
otherwise used in the same code block. (Not sure this is the right
place, but there is no test_list_comprehensions.py.)
2001-01-23 01:51:40 +00:00
Tim Peters
e935816164
Reorganize pickle/cPickle testing so the tests pass regardless of the order
...
they're run.
2001-01-22 22:05:20 +00:00
Tim Peters
d304f44906
Patch #103343 : Allow the important test_pkg to succeed under Jython.
2001-01-21 19:51:53 +00:00
Tim Peters
08dabf0a73
Patch #103344 : Sort dicts from extcall for easier comparison with Jython.
2001-01-21 18:52:02 +00:00
Skip Montanaro
e99d5ea25b
added __all__ lists to a number of Python modules
...
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.
2001-01-20 19:54:20 +00:00
Guido van Rossum
0a5f91f1d9
Now that Marc-Andre has retracted unistr(), remove the tests.
2001-01-19 21:57:52 +00:00
Fredrik Lundh
2acb54a194
improved the ucnhash test a bit
2001-01-19 11:13:46 +00:00
Tim Peters
d93c0b6a37
Jeremy's patch #103323 : trivial tests of all untested modules.
2001-01-19 05:41:36 +00:00
Jeremy Hylton
b4ed8c4db0
add test of bastion and rexec to std regression test suite
2001-01-19 03:22:48 +00:00
Guido van Rossum
2f1064c77b
A dumb test for the dumdbm module.
2001-01-18 16:46:52 +00:00
Guido van Rossum
c4a6e8b65a
Rich comparison tests
2001-01-18 15:48:05 +00:00
Marc-André Lemburg
ad7c98e264
This patch adds a new builtin unistr() which behaves like str()
...
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.
2001-01-17 17:09:53 +00:00
Ka-Ping Yee
10bc59320c
Ugh. Sorry. Checked in the wrong file. Please ignore revision 1.3;
...
it anticipates another patch i was about to propose.
2001-01-15 22:27:06 +00:00
Ka-Ping Yee
27ac0d1ff5
better format names and error messages
2001-01-15 22:21:39 +00:00
Ka-Ping Yee
2057970601
This patch makes sure that the function name always appears in the error
...
message, and tries to make the messages more consistent and helpful when
the wrong number of arguments or duplicate keyword arguments are supplied.
Comes with more tests for test_extcall.py and and an update to an error
message in test/output/test_pyexpat.
2001-01-15 22:14:16 +00:00