Tim Peters
0009c4ea59
Whitespace normalization.
2001-02-21 07:29:48 +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
bc8f72cccc
Patch #103854 : raises an exception if a non-Attr node is passed to
...
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.)
2001-02-21 01:30:26 +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
Fredrik Lundh
c0c7ee3a65
detect attempts to repeat anchors (fixes bug #130748 )
2001-02-18 21:04:48 +00:00
Tim Peters
8ac3627b91
sre_{parse, compile} no longer define __all__.
2001-02-18 14:44:42 +00:00
Fredrik Lundh
f2989b22ff
- restored 1.5.2 compatibility (sorry, eric)
...
- removed __all__ cruft from internal modules (sorry, skip)
- don't assume ASCII for string escapes (sorry, per)
2001-02-18 12:05:16 +00:00
Skip Montanaro
78349072f7
removed __all__ from several modules
2001-02-18 03:30:53 +00:00
Tim Peters
0e6d213177
Whitespace normalization.
2001-02-15 23:56:39 +00:00
Skip Montanaro
0de65807e6
bunch more __all__ lists
...
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)
2001-02-15 22:15:14 +00:00
Andrew M. Kuchling
8e6d44eedc
Patch #103748 from Toby Dickenson: fix typo in test_zlib that turns one
...
test case into a no-op because ''.join('hello world') == 'hello world'
2001-02-14 17:46:20 +00:00
Fred Drake
cc1f951b4c
Test section name using some strange characters, including a backslash
...
(SF bug #132288 ).
2001-02-14 15:30:31 +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
76c066b103
test_pty started failing on Windows, but if and only if test___all__ was
...
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.
2001-02-12 03:27:31 +00:00
Skip Montanaro
c62c81e013
__all__ for several more modules
2001-02-12 02:00:42 +00:00
Marc-André Lemburg
ef0a032883
Patch by Finn Bock to make test_unicode.py work for Jython.
2001-02-10 14:09:31 +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
11db72a5c3
update to use new symtable interface
2001-02-09 22:57:10 +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
Tim Peters
10fb386399
Whitespace normalization.
2001-02-09 20:17:14 +00:00
Eric S. Raymond
dbbbaf2696
joinfields -> join.
2001-02-09 17:05:53 +00:00
Eric S. Raymond
83ff749827
String method conversion.
2001-02-09 12:03:45 +00:00
Eric S. Raymond
2846b0ab41
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 12:00:47 +00:00
Eric S. Raymond
fc170b1fd5
String method conversion.
2001-02-09 11:51:27 +00:00
Eric S. Raymond
d8c628bd59
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 11:46:37 +00:00
Skip Montanaro
352674d01c
a few more __all__ lists
2001-02-07 23:14:30 +00:00
Skip Montanaro
cc012e92b2
test for presence of __builtins__ in names before deleting it, enabling this
...
to work with Jython (ugh! I hate that name!). This closes patch 103665.
2001-02-07 22:46:55 +00:00
Martin v. Löwis
fe28ca09a5
Add xml declaration into toxml testcase.
2001-02-06 01:16:48 +00:00
Skip Montanaro
269b83bc05
added several more __all__ lists
2001-02-06 01:07:02 +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
Tim Peters
d66595fe42
Renamed _testXXX to _testcapiXXX. Jack is my hero -- good call!
2001-02-04 03:09:53 +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
Jeremy Hylton
6fe0a82ecb
move extra arguments to the back of the new.code() arglist
2001-02-01 19:50:29 +00:00
Fred Drake
acfb3f6006
Revise the driver code to be more informative in the final report.
2001-02-01 18:11:29 +00:00
Fred Drake
41deb1efc2
PEP 205, Weak References -- initial checkin.
2001-02-01 05:27:45 +00:00
Moshe Zadka
fc3fc337d0
Checking in patch #103478 -- makes popen2 and fork1 tested on BeOS.
...
Tested for not breaking builds on Linux.
2001-01-30 18:35:32 +00:00
Jeremy Hylton
251ef9666e
Fix test for free ref to global. This test should have caught a
...
recently fixed bug, but it checked for the wrong answer.
2001-01-30 01:26:53 +00:00
Jeremy Hylton
ac25a38841
add test for illegal imports
2001-01-30 01:25:56 +00:00
Marc-André Lemburg
fde66e1bcc
Fixed .capitalize() method of Unicode objects to work like the
...
corresponding string method. Added tests for this too.
Patch written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
2001-01-29 11:14:16 +00:00
Moshe Zadka
497671e094
The one thing I love more then writing code is deleting code.
...
* Removed func_hash and func_compare, so they can be treated as immutable
content-less objects (address hash and comparison)
* Added tests to that affect to test_funcattrs (also testing func_code
is writable)
* Reverse meaning of tests in test_opcodes which checked identical code
gets identical functions
2001-01-29 06:21:17 +00:00