Guido van Rossum
2d21863266
Add support for FreeBSD-[45].
...
-- tg@FreeBSD.org
2000-08-29 14:57:27 +00:00
Barry Warsaw
9182b45a5a
Added tests of "print >> None"
2000-08-29 04:57:10 +00:00
Fred Drake
31f182e830
Added os.popen2() and os.popen3() for non-Windows platforms.
2000-08-28 17:20:05 +00:00
Tim Peters
c79519569d
Open binary files in binary mode. Fixes test failure under Windows.
2000-08-26 21:01:27 +00:00
Moshe Zadka
617c43cafe
Tim Peters:
...
Again due to the duplicate copies of test_support, the checked-in
"expected output" file actually contains verbose-mode output.
2000-08-26 09:59:01 +00:00
Tim Peters
43dee06471
Another new test using "from test.test_support import ...", causing
...
subtle breakage on Windows (the test is skipped here, but the TestSkipped
exception wasn't recognized as such, because of duplicate copies of
test_support got loaded; so the test looks like a failure under Windows
instead of a skip).
Repaired the import, but
THIS TEST *WILL* FAIL ON OTHER SYSTEMS NOW!
Again due to the duplicate copies of test_support, the checked-in
"expected output" file actually contains verbose-mode output. I can't
generate the *correct* non-verbose output on my system. So, somebody
please do that.
2000-08-26 08:24:18 +00:00
Fred Drake
28f739aad4
Update the parser module to support augmented assignment.
...
Add some test cases.
2000-08-25 22:42:40 +00:00
Marc-André Lemburg
4ea8d6e52e
Output of the new test
2000-08-25 22:37:51 +00:00
Marc-André Lemburg
fa44d794bd
New test suite for file objects by Jeremy Hilton. This will need
...
to be extended somewhat -- right now it only tests the .writelines()
method.
2000-08-25 22:37:31 +00:00
Moshe Zadka
a1a4b5916b
Closing patch #101120 -- After everyone agreed.
2000-08-25 21:47:56 +00:00
Barry Warsaw
1dce09da61
Group consensus is that supporting alternative locale categories is
...
useless. So the test of the dcgettext() function is removed.
2000-08-25 19:53:51 +00:00
Barry Warsaw
ff6d813657
Set this test up so that we don't have to create xx/LC_MESSAGES in the
...
cvs tree. It creates the directory and gettext.mo file on the fly,
from the base64 encode binary data.
2000-08-25 19:50:38 +00:00
Barry Warsaw
e332c1f415
updated test output
2000-08-25 19:49:28 +00:00
Barry Warsaw
dd46cb38ce
output from test_gettext.py test suite
2000-08-25 19:15:00 +00:00
Barry Warsaw
9e03592149
Test suite for new gettext.py module.
2000-08-25 19:14:25 +00:00
Andrew M. Kuchling
3227cc8c09
Test suite for poll() interface (SF patch #100852 )
2000-08-25 01:18:45 +00:00
Thomas Wouters
104a7bcc28
Support for augmented assignment in the UserList, UserDict, UserString and
...
rfc822 (Addresslist) modules. Also a preliminary testcase for augmented
assignment, which should actually be merged with the test_class testcase I
added last week.
2000-08-24 20:14:10 +00:00
Andrew M. Kuchling
103d5268c2
Updated test suite: test repr() and str() of cookies, and test metadata
...
fields with quoted values (as in Path="/acme")
2000-08-24 11:56:19 +00:00
Fred Drake
33438d23fa
Charles G. Waldman <cgq@fnal.gov>:
...
Update the test suite for the changes introduced by the EXTENDED_ARG
opcode.
This closes the regression test changes of SourceForge patch #100893 .
2000-08-24 00:35:38 +00:00
Jeremy Hylton
cf29bb2aa9
style nits
2000-08-23 21:11:05 +00:00
Fred Drake
27c4b39025
When skipping a test, do not include a spurious space between the exception
...
name and the ":" that separates it from the value. (Minor cleanup.)
2000-08-23 20:34:40 +00:00
Skip Montanaro
9dcea3f8a8
test case output for dospath regr test
2000-08-23 20:07:21 +00:00
Skip Montanaro
640f483c50
new test - like test_ntpath but without splitunc test cases
2000-08-23 16:55:00 +00:00
Skip Montanaro
877d62e72d
added commonprefix test cases
2000-08-23 16:54:27 +00:00
Skip Montanaro
533bc9ad42
updated to correct failing test cases
2000-08-23 16:51:56 +00:00
Tim Peters
a48b526745
Rehabilitate autotest.py.
...
In README: Write up (Guido's) rules for intra-test imports; warn against
asserts; document test_support.use_large_resources.
2000-08-23 05:28:45 +00:00
Skip Montanaro
46dfa5f4ed
require list comprehensions to start with a for clause
2000-08-22 02:43:07 +00:00
Guido van Rossum
ff18b800a4
Don't reference a module named test.test_support. Always use plain
...
test_support. Also fixed the expected output.
2000-08-21 22:59:29 +00:00
Fred Drake
79ca79d1a9
Add a minimal test suite for the parser module.
2000-08-21 22:30:53 +00:00
Fred Drake
62c53ddabe
Add TestSkipped as another interesting item defined by test_support.
2000-08-21 16:55:57 +00:00
Barry Warsaw
efc92eec33
PEP 214, Extended print Statement, has been accepted by the BDFL.
...
Additional test cases for the extended print form.
2000-08-21 15:46:50 +00:00
Tim Peters
e82e7ccdbd
Remove the winreg module from the project. I don't believe any
...
docs changes are needed (only reference to winreg I could find
was in libwinreg.tex, which is documenting _winreg, and merely
mentions that a higher-level winreg module *may* appear someday;
that's still true).
2000-08-21 02:27:22 +00:00
Tim Peters
571bb8fc72
David Goodger's new getopt test module (thanks, David!).
...
https://sourceforge.net/patch/?func=detailpatch&patch_id=101110&group_id=5470
Accepted as-is, except for purging an "import *".
2000-08-20 04:18:40 +00:00
Moshe Zadka
514a1028a2
Adding tests of the "attrs" optional argument, and of the js_output
...
functionality.
2000-08-19 15:57:33 +00:00
Andrew M. Kuchling
cdec8c746b
Test case for Cookie.py
2000-08-19 15:21:12 +00:00
Fred Drake
8ae9ce5e5b
Better conformance to the Python Style Guide: use spaces around operators.
2000-08-18 16:09:56 +00:00
Fred Drake
fe5c22a85e
When a KeyboardInterrupt is caught, just use the "raise" syntax to
...
re-raise it instead of re-raising it "manually" the ugly way.
2000-08-18 16:04:05 +00:00
Fred Drake
b65b006595
Convert some old-style string exceptions to class exceptions.
2000-08-18 14:50:20 +00:00
Thomas Wouters
5215225ea1
Apply SF patch #101135 , adding 'import module as m' and 'from module import
...
name as n'. By doing some twists and turns, "as" is not a reserved word.
There is a slight change in semantics for 'from module import name' (it will
now honour the 'global' keyword) but only in cases that are explicitly
undocumented.
2000-08-17 22:55:00 +00:00
Thomas Wouters
1d75a79c00
Apply SF patch #101029 : call __getitem__ with a proper slice object if there
...
is no __getslice__ available. Also does the same for C extension types.
Includes rudimentary documentation (it could use a cross reference to the
section on slice objects, I couldn't figure out how to do that) and a test
suite for all Python __hooks__ I could think of, including the new
behaviour.
2000-08-17 22:37:32 +00:00
Fred Drake
56221a7cfa
Chris Herborth <chrish@pobox.com>:
...
Minor updates for BeOS R5.
Use of OSError in test.test_fork1 changed to TestSkipped, with corresponding
change in BeOS/README (by Fred).
This closes SourceForge patch #100978 .
2000-08-15 18:52:33 +00:00
Fred Drake
a64436e853
Update test output to reflect change in SyntaxError formatting.
...
This closes SourceForge bug #110628 (Jitterbug PR#278).
2000-08-15 15:51:18 +00:00
Barry Warsaw
97ca66fd57
tests for binascii.b2a_hex() and binascii.a2b_hex().
2000-08-15 06:08:31 +00:00
Barry Warsaw
3fdcccb82f
Added a test of the md5.hexdigest() method. Funny enough, this test
...
had yet-another Python implementation of a binary-data-to-hex-digit
encoder!
2000-08-15 06:01:36 +00:00
Mark Hammond
041307d95c
Remove the test for abspath with an empty path - too hard to do in a cross-platform manner.
2000-08-14 23:06:37 +00:00
Mark Hammond
673c6cf3d4
Test for fix to bug #110673 : os.abspatth() now always returns os.getcwd() on Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName())
2000-08-14 06:21:26 +00:00
Mark Hammond
0d0b1e93e1
Check in the correct output - even though the module itself may not survive!
2000-08-14 06:05:40 +00:00
Skip Montanaro
803d6e5451
list comprehensions. see
...
http://sourceforge.net/patch/?func=detailpatch&patch_id=100654&group_id=5470
for details.
2000-08-12 18:09:51 +00:00
Trent Mick
f29f47b38b
Add largefile support for Linux64 and WIn64. Add test_largefile and some minor
...
change to regrtest.py to allow optional running of test_largefile ('cause it's
slow on Win64).
This closes patches:
http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=100510&group_id=5470
and
http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=100511&group_id=5470
2000-08-11 19:02:59 +00:00
Peter Schneider-Kamp
10e1bf2f64
remove all occurence of math.rint() from the sources
...
(and yes, "Currintly" also counts <0.5 wink>)
2000-08-10 04:23:30 +00:00
Fredrik Lundh
5810064476
-- changed findall to return empty strings instead of None
...
for undefined groups
2000-08-09 09:14:35 +00:00
Fredrik Lundh
8e6d571a7c
-- enabled some temporarily disabled RE tests
...
-- added basic unicode tests to test_re
-- added test case for Sjoerd's xmllib problem to re_tests
2000-08-08 17:06:53 +00:00
Fredrik Lundh
2643b55a77
-- whitespace cleanup (real changes coming in next checkin)
2000-08-08 16:52:51 +00:00
Fredrik Lundh
1151a8cd61
-- whitespace cleanup (more tests to be added in the next commit)
2000-08-08 16:47:42 +00:00
Guido van Rossum
79c9b17d17
Barry's patch to test the new setdefault() method.
2000-08-08 16:13:23 +00:00
Marc-André Lemburg
e5034378cc
Removing UTF-16 aware Unicode comparison code. This kind of compare
...
function (together with other locale aware ones) should into a new collation
support module. See python-dev for a discussion of this removal.
Note: This patch should also be applied to the 1.6 branch.
2000-08-08 08:04:29 +00:00
Vladimir Marangozov
f9d20c3786
Neil Schemenauer: GC enable(), disable(), isenabled() interface.
...
Small stylistic changes by VM:
- is_enabled() -> isenabled()
- static ... Py_<func> -> static ... gc_<func>
2000-08-06 22:45:31 +00:00
Moshe Zadka
92a69138b3
Oooopsss.....tab and space mismatch corrected.
2000-08-04 15:25:58 +00:00
Thomas Wouters
b9fa0a843e
Raise 'TestSkipped' (from the test_support) module rather than 'ImportError'
...
to signify a test that should be marked as 'skipped' rather than 'failed'.
Also 'document' it, in README.
2000-08-04 13:34:43 +00:00
Moshe Zadka
040c17fe38
Raise TestSkipped, not ImportError.
...
Honesty's the best policy.
2000-08-04 13:26:03 +00:00
Thomas Wouters
3af826ebca
Make test_support.TestSkipped errors work the same way as ImportErrors:
...
mark the test as 'skipped', rather than 'failed'.
2000-08-04 13:17:51 +00:00
Moshe Zadka
323a5086ae
In case the user isn't allowed to access /dev/dsp or /dev/dsp isn't there
...
at all (my computer doesn't have a Sound Blaster), this doesn't mean
there's a bug in linuxaudiodev. The only error the test suite skips
is currently ImportError -- so that's what we raise. If you see a problem
with this patch, say so and I'll retract. If you think raising an ImportError
sucks, you're right -- but I ain't gonna buy a SB and I sure ain't gonna
let the test-suite fail on my machine.
2000-08-04 12:59:40 +00:00
Jeremy Hylton
d9827c476c
test the non-multipart sections of the cgi module
2000-08-03 22:11:43 +00:00
Moshe Zadka
73ed8e566e
Checking in empty tests for urlparse, as future place holders
2000-08-03 17:28:50 +00:00
Fredrik Lundh
96ab46529b
-- added recursion limit (currently ~10,000 levels)
...
-- improved error messages
-- factored out SRE_COUNT; the same code is used by
SRE_OP_REPEAT_ONE_TEMPLATE
-- minor cleanups
2000-08-03 16:29:50 +00:00
Barry Warsaw
a873b03ebb
Added a -l/--leakdebug option which turns on DEBUG_LEAK if the gc
...
module is importable.
2000-08-03 15:50:37 +00:00
Barry Warsaw
e027d8dc81
Added output for testsuite for new zip() builtin.
2000-08-03 15:48:31 +00:00
Barry Warsaw
7bfc1a1507
Added testsuite for new zip() builtin.
2000-08-03 15:48:07 +00:00
Andrew M. Kuchling
e6f164622f
Comment out repeated-group test for the moment
2000-08-03 12:16:29 +00:00
Andrew M. Kuchling
a3eacc472c
Add nasty test case that overflows the stack with a repeated group
2000-08-03 02:06:45 +00:00
Fredrik Lundh
067bebfe2d
-- SRE 0.9.8: now that the bug is fixed, I might as well enable
...
the test again...
2000-08-01 13:16:55 +00:00
Fredrik Lundh
c2ed621d75
-- SRE 0.9.8: updated test scripts
2000-08-01 13:01:43 +00:00
Peter Schneider-Kamp
5a65c2d436
added count, extend, index, pop and remove to arraymodule
2000-07-31 20:52:21 +00:00
Thomas Wouters
a701597138
Fix inconsistent use of tab/space in indentation.
2000-07-30 15:38:35 +00:00
Mark Hammond
af4cfae300
Test that after resizing the mmap'd file, we can't seek beyond the new size.
2000-07-30 02:20:38 +00:00
Andrew M. Kuchling
85ab7384f6
Exercise .readline() and .readlines(). More data is written to the
...
test file, too, so the methods have more work to do.
2000-07-29 20:18:34 +00:00
Mark Hammond
152e3f0885
Was quite broken and incomplete. Now passes the test suite, but is still incomplete.
2000-07-28 03:45:32 +00:00
Trent Mick
c64c8ea71c
Remove erroneous empty trailing line. (cause test_winreg.py failure)
2000-07-27 23:26:28 +00:00
Fredrik Lundh
9407e553c0
-- changed test to work on platforms which have os.popen
...
but no os.fork
2000-07-27 07:42:43 +00:00
Peter Schneider-Kamp
fdee0f0aa7
added test case for fixed duplicate arguments bug in Python/compile.c
2000-07-25 22:15:45 +00:00
Andrew M. Kuchling
c1b4624447
Made an error message slightly more useful if select() returns something goofy
2000-07-25 00:51:31 +00:00
Fredrik Lundh
82c330e591
-- updated to include known problems in SRE 0.9.6
...
(cf. test/output/test_sre)
2000-07-24 22:35:11 +00:00
Fred Drake
1790dd4b66
Restore TestSkipped exception; appears to have disappeared in last checkin.
...
Make both TextFailed and TestSkipped subclasses of Error, which derives
from Exception. Docstrings have been added for the exceptions and module.
2000-07-24 06:55:00 +00:00
Fredrik Lundh
8a3ebf8ca8
-- SRE 0.9.6 sync. this includes:
...
+ added "regs" attribute
+ fixed "pos" and "endpos" attributes
+ reset "lastindex" and "lastgroup" in scanner methods
+ removed (?P#id) syntax; the "lastindex" and "lastgroup"
attributes are now always set
+ removed string module dependencies in sre_parse
+ better debugging support in sre_parse
+ various tweaks to build under 1.5.2
2000-07-23 21:46:17 +00:00
Skip Montanaro
e9e5dcd4db
restructured a bit and added some more content...
2000-07-19 17:19:49 +00:00
Skip Montanaro
4d06923122
make TestFailed a class exception
2000-07-19 17:14:48 +00:00
Thomas Wouters
baf2663e44
Enable extra testing now that os.isatty() is in. (Also tests os.isatty ;P)
2000-07-19 14:51:54 +00:00
Thomas Wouters
7e47402264
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
...
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
2000-07-16 12:04:32 +00:00
Vladimir Marangozov
5ff2ac2fa9
Break a cycle created in the saboteur() function.
2000-07-15 00:42:09 +00:00
Vladimir Marangozov
d57f5cff0e
Break the cycles after testing cmp() on cyclic objects.
2000-07-14 04:32:09 +00:00
Skip Montanaro
56509a3cb8
new test for posixpath module
2000-07-12 00:20:45 +00:00
Skip Montanaro
e809b00f36
new test file for posixpath module
2000-07-12 00:20:08 +00:00
Jeremy Hylton
88887aa38e
small updates to string_join:
...
use PyString_AS_STRING macro on local string object
when resizing string, make sure resized string will always be big enough
split string containing error message across two lines
add test to string_tests that causes resizing
2000-07-11 20:55:38 +00:00
Fred Drake
85f363990c
Create two new exceptions: IndentationError and TabError. These are
...
used for indentation related errors. This patch includes Ping's
improvements for indentation-related error messages.
Closes SourceForge patches #100734 and #100856 .
2000-07-11 17:53:00 +00:00
Jeremy Hylton
fff9e20943
fix bug #42 reported by Andrew Dalke
...
The Compare close contains a close method that checks to see if there
is any unconsumed data in the Compare instance; i.e. if the canonical
output file contains more data than was produced by the current test
run. This method was never called, allowing differences to go
undetected.
Fix is to call close after the test is run (after __import__)
output/test_long and output/test_popen2 needed trivial changes
output/test_select contained lots of text, but test_select.py produced
no output
2000-07-11 15:15:31 +00:00
Peter Schneider-Kamp
7a11671e8b
fixed inconsistent use of tab and spaces
2000-07-11 11:24:41 +00:00
Andrew M. Kuchling
d3cf692c38
Add test of resize() method of mmap objects
2000-07-11 10:45:28 +00:00
Jeremy Hylton
20f41b6456
add more tests of string.join variants to run_method_tests
2000-07-11 03:31:55 +00:00
Jeremy Hylton
f82b04ecbb
factor out test definitions to string_tests module
...
test_string and test_userstring run same tests for string methods
2000-07-10 17:08:42 +00:00
Guido van Rossum
1bbddd085c
Added the line 'Testing UTF-16 code point order comparisons... done."
...
to match addition to test_unicode.py.
2000-07-10 15:06:06 +00:00