Jeremy Hylton
3bee2f6011
Update to reflect new tokenize_test.py
2001-04-13 14:55:18 +00:00
Martin v. Löwis
88ad12afac
Patch #415777 : new grouping strategy.
...
fixes bug #414940 , and redoes the fix for #129417 in a different way.
It also fixes a number of other problems with locale-specific formatting:
If there is leading or trailing spaces, then no grouping should be applied
in the spaces, and the total length of the string should not be changed
due to grouping.
Also added test case which works only if the en_US locale is available.
2001-04-13 08:09:50 +00:00
Jeremy Hylton
ceccc3c037
Test cases for examples of ext call error handling.
...
Fix to SF bug #414743 based on Michael Hudson's patch #414750 .
2001-04-11 13:53:35 +00:00
Tim Peters
eb26f95906
Since Guido fiddled Cookie.py to work with doctest, it's a Good Thing to
...
have the std test suite exercise the Cookie doctests too.
2001-04-06 21:20:58 +00:00
Guido van Rossum
66172520ee
Add test for asynchat. This also tests asyncore.
2001-04-06 16:32:22 +00:00
Fred Drake
b0fefc5121
Convert the weakref test suite to PyUNIT, and add tests that exercise weak
...
references on function objects and both bound and unbound methods.
2001-03-23 04:22:45 +00:00
Fredrik Lundh
015415ed14
SRE 2.1b2: increase the chances that the sre test works on other
...
machines...
2001-03-22 23:48:28 +00:00
Fredrik Lundh
987f1332fe
SRE 2.1b2: forgot to update one output file (sorry, Fred!)
2001-03-22 23:29:04 +00:00
Tim Peters
24a4191160
Changed doctest to run tests in alphabetic order of name.
...
This makes verbose-mode output easier to dig thru, and removes an accidental
dependence on the order of dict.items() (made visible by recent changes to
dictobject.c).
2001-03-21 23:07:59 +00:00
Jeremy Hylton
09ccc3a22a
Test that traceback module works with SyntaxErrors with or without carets.
2001-03-21 20:33:04 +00:00
Fred Drake
91751143eb
Add test cases for the fnmatch module.
2001-03-21 18:29:25 +00:00
Jeremy Hylton
5c7a2513ec
Add tests for recent changes:
...
- global stmt in class does not affect free vars in methods
- locals() works with free and cell vars
2001-03-21 16:44:39 +00:00
Jeremy Hylton
e241e29f3d
Add test for a list comprehension that is nested in the left-hand part
...
of another list comp. This caused crashes reported as SF bugs 409230
and 407800.
Note that the new tests are in a function so that the name lookup code
isn't affected by how many *other* list comprehensions are in the same
scope.
2001-03-19 20:42:11 +00:00
Tim Peters
9e6f278fc1
Repair test_doctest's expected-output file (Guido added some new output).
2001-03-18 20:14:25 +00:00
Tim Peters
0f33604e17
SF bug [ #409448 ] Complex division is braindead
...
http://sourceforge.net/tracker/?func=detail&aid=409448&group_id=5470&atid=105470
Now less braindead. Also added test_complex.py, which doesn't test much, but
fails without this patch.
2001-03-18 08:21:57 +00:00
Jeremy Hylton
5b44a67bdb
Add test to verify that nested functions with free variables don't
...
cause the free variables to leak.
2001-03-13 02:01:12 +00:00
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