Tim Peters
887c080a80
Whitespace normalization.
2006-01-20 23:40:56 +00:00
Georg Brandl
bde4ad4f92
Patch #1410998 : remove "DOS" from os.py docstring
2006-01-20 21:36:02 +00:00
Georg Brandl
23929f2828
Try to resolve the remaining webbrowser issues (backgrounding, local urls)
2006-01-20 21:03:35 +00:00
Tim Peters
777f1083ef
Whitespace normalization.
2006-01-20 20:03:24 +00:00
Vinay Sajip
568482a266
Added a test for the ability to specify a class attribute in Formatter configuration. Contributed by Shane Hathaway.
2006-01-20 18:29:36 +00:00
Vinay Sajip
80d2df86dc
Added a test for the ability to specify a class attribute in Formatter configuration. Contributed by Shane Hathaway.
2006-01-20 18:28:59 +00:00
Vinay Sajip
7a7160bd0c
Added the ability to specify a class attribute in Formatter configuration. Contributed by Shane Hathaway.
2006-01-20 18:28:03 +00:00
Georg Brandl
81cdb4ebe1
Patch #1388073 : Make unittest.TestCase easier to subclass
2006-01-20 17:55:00 +00:00
Georg Brandl
da6b107745
Checkin the test of patch #1400181 .
2006-01-20 17:48:54 +00:00
Georg Brandl
89f35ac180
Bug #1407902 : Added support for sftp:// URIs to urlparse.
2006-01-20 17:24:23 +00:00
Georg Brandl
5035c1c557
Readd bug report note.
2006-01-20 13:38:26 +00:00
Georg Brandl
b709c2caba
Bug #1371247 : Update Windows LCIDs in locale.py.
2006-01-20 09:07:35 +00:00
Brett Cannon
2dbf2a98f4
Add a more informative error message for test_float_parsing so the failing
...
locale can be known.
2006-01-19 07:09:09 +00:00
Barry Warsaw
6153201274
SF bug #1347874 ; FeedParser does not comply with RFC2822.
...
Change headerRE as suggested in the bug report, so that single character
headers are accepted. Test case added too. Will backport to Python 2.4.
2006-01-17 05:58:08 +00:00
Barry Warsaw
a0f28efcd1
Ported 42075 from release23-maint branch.
...
SF bug #1403349 solution for email 3.0; some MUAs use the 'file' parameter
name in the Content-Distribution header, so Message.get_filename() should fall
back to using that. Will port to the Python 2.5 trunk.
Also, bump the email package version to 3.0.1 for eventual release. Of
course, add a test case too.
XXX Need to update the documentation.
2006-01-17 04:49:07 +00:00
Vinay Sajip
989b69a519
Refactoring for fileConfig. Contributed by Shane Hathaway.
2006-01-16 21:28:37 +00:00
Vinay Sajip
fe03bee62f
Changes due to added test for fileConfig contributed by Shane Hathaway.
2006-01-16 21:25:28 +00:00
Vinay Sajip
22b25aa9e2
Added test for fileConfig. Contributed by Shane Hathaway.
2006-01-16 21:24:38 +00:00
Vinay Sajip
814fa0fe11
Exceptions raised during renaming in rotating file handlers are now passed to handleError (except for SystemExit and KeyboardInterrupt, which are re-raised).
2006-01-16 09:27:58 +00:00
Vinay Sajip
e928977b80
Exceptions raised during renaming in rotating file handlers are now passed to handleError (except for SystemExit and KeyboardInterrupt, which are re-raised).
2006-01-16 09:27:10 +00:00
Vinay Sajip
d952041dc7
TimedRotatingFileHandler now calculates next rollover from previous rollover rather than current time.
2006-01-16 09:13:58 +00:00
Vinay Sajip
74a83e9ffb
Fixed bug in time-to-midnight calculation.
2006-01-16 09:08:06 +00:00
Armin Rigo
b4b5a7601b
collected my segfaulting Python examples from the SF trackers
...
(is the purpose of the crashers directory to scare people? :-)
2006-01-14 10:58:30 +00:00
Georg Brandl
45ab233935
Bug #1394565 : SimpleHTTPServer now doesn't choke on query paramters
...
any more.
2006-01-13 17:05:56 +00:00
Georg Brandl
4edd989eaf
Bug #1403410 : The warnings module now doesn't get confused
...
when it can't find out the module name it generates a warning for.
2006-01-13 16:59:46 +00:00
Tim Peters
a28ad77844
Whitespace normalization.
2006-01-13 03:05:25 +00:00
Georg Brandl
05f5ba9636
Test curses.setupterm() before initscr().
2006-01-12 15:41:05 +00:00
Neal Norwitz
3b4fff8079
Fix SF bug #1402308 , segfault when using mmap(-1, ...)
...
This didn't crash on Linux, but valgrind complained.
I'm not sure if this test is valid on Windows.
Will backport.
2006-01-11 08:54:45 +00:00
Neal Norwitz
ae1df41127
add another crash reported by Thomas Wouters
2006-01-11 07:21:19 +00:00
Georg Brandl
05af43d6a0
Remove outstanding_crashes again.
2006-01-10 20:07:13 +00:00
Georg Brandl
7e8bfa4163
Add outstanding_crashes.py with tests for crashes.
2006-01-10 19:29:24 +00:00
Neal Norwitz
8cc4ef561c
As I threatened on python-dev, add a directory which contains all known
...
bugs which cause the interpreter to crash. I'm sure we can find a few
more. Many missing bugs deal with variations on unchecked infinite recursion
(like coerce.py).
2006-01-10 07:49:41 +00:00
Neal Norwitz
88bbd73d07
SF bug #1400822 , Extended version of _curses over{lay,write} does not work
...
Fix signatures to conform to doc (also fixed ungetmouse()).
Will backport.
2006-01-10 07:05:44 +00:00
Georg Brandl
ed1e497fb2
Correct test_builtin locale handling.
2006-01-09 22:36:58 +00:00
Neal Norwitz
5e3d862392
Bug #1400115 , Fix segfault when calling curses.panel.userptr()
...
without prior setting of the userptr.
Will backport.
2006-01-09 06:24:35 +00:00
Georg Brandl
c4e2a9b70a
Add a test file (which isn't run by regrtest) for bugs which
...
aren't fixed yet.
Includes a first test (for compiler).
2006-01-08 14:32:19 +00:00
Martin v. Löwis
6d0c85a71c
Patch #1299675 : Pass metadata in upload.
2006-01-08 10:48:54 +00:00
Martin v. Löwis
412ed3b8a7
Patch #1177307 : UTF-8-Sig codec.
2006-01-08 10:45:39 +00:00
Tim Peters
2841af4cec
Revert revision 41940: the test causes -uall to
...
fail everywhere.
2006-01-07 23:20:46 +00:00
Georg Brandl
39cdfff691
Add compiler test regarding optional arguments.
2006-01-06 19:28:15 +00:00
Neal Norwitz
9f39f68533
initscr() will exit if there's an error. Try to catch the obvious failure
...
cases if TERM isn't set or is unknown (perhaps we should only check if
unset or empty?)
Skip the test if TERM isn't set. This seems to occur when running under
buildbot and presumably cron.
For some more info check here:
http://mail.python.org/pipermail/python-checkins/2006-January/048704.html
Will backport if it works.
2006-01-06 04:18:21 +00:00
Martin v. Löwis
1df5c3961c
Generalize buildno to be a sequence of non-comma
...
characters.
2006-01-06 00:44:11 +00:00
Neal Norwitz
c6d1f9100f
If the audio file does not exist, the test should be skipped. Will backport.
2006-01-05 07:16:13 +00:00
Neal Norwitz
eeab7da591
Skip test_curses if stdin is not a tty (like when run from cron or buildbot). Will backport.
2006-01-05 06:09:13 +00:00
Tim Peters
0cdc3d884e
test_main(): Restore the original root logger level after running
...
the tests. This stops the confusing/annoying:
No handlers could be found for logger "cookielib"
message we got whenever some test running after test_logging
happened to use cookielib.py (when not using regrtest's -r,
this happened during test_urllib2; when using -r, it varied).
2005-12-30 20:46:23 +00:00
Tim Peters
1b27f86411
Whitespace normalization.
2005-12-30 18:42:42 +00:00
Martin v. Löwis
4cfa136680
Work around test_locale failing on Solaris.
...
Will backport to 2.4.
2005-12-30 12:51:45 +00:00
Skip Montanaro
39b29be8a6
Fix a delimiter detection problem in sniffer. Sniffing "a|b|c\r\n" was
...
returning 'a' as the delimiter. It now returns '|', but not because I
understood better what the code was supposed to do. Would someone that
understands the idea behind _guess_delimiter() (see its doc string) look to
see if my fallback choice is better than before or if it's just serendipity
that I picked the proper delimiter?
2005-12-30 05:09:48 +00:00
Fredrik Lundh
24f0fa97c5
SF#1391872
...
Floating point literals don't work in non-US locale in 2.5. Patch and
new locale tests by Hye-Shik Chang.
2005-12-29 20:35:52 +00:00
Armin Rigo
037d1e0ff3
SF bug #1153075 : "PyXxx_Check(x) trusts x->ob_type->tp_mro".
...
A patch by mwh to check that user-defined mro's are reasonable
enough.
2005-12-29 17:07:39 +00:00
Armin Rigo
f5bd3b442d
adding in-place operators to the operator module.
2005-12-29 16:50:42 +00:00
Armin Rigo
fd163f92ce
SF patch #1390657 :
...
* set sq_repeat and sq_concat to NULL for user-defined new-style
classes, as a way to fix a number of related problems. See
test_descr.notimplemented()). One of these problems was fixed
in r25556 and r25557 but many more existed; this is a general
fix and thus reverts r25556-r25557.
* to avoid having PySequence_Repeat()/PySequence_Concat() failing
on user-defined classes, they now fall back to nb_add/nb_mul if
sq_concat/sq_repeat are not defined and the arguments appear to
be sequences.
* added tests.
Backport candidate.
2005-12-29 15:59:19 +00:00
Skip Montanaro
91bb70c5c0
Fix for problem with Sniffer class. If your delimiter is whitespace and the
...
last field was empty it would strip the delimiter and incorrectly guess that
"" was the delimiter. Reported in c.l.py by Laurent Laporte. Will
backport.
2005-12-28 15:37:25 +00:00
Georg Brandl
c0b24734e0
Bug #649974 : make docstrings for url2pathname consistent
2005-12-26 22:53:56 +00:00
Tim Peters
536cf99536
Whitespace normalization.
2005-12-25 23:18:31 +00:00
Tim Peters
83a8c393b0
test_bug_1333982(): This one must fail under -O.
...
All the --all test pass using -O on WinXP now.
2005-12-25 22:52:32 +00:00
Neal Norwitz
71dad72ebe
SF patch #1157027 , cookielib mis-handles RFC 2109 cookies in Netscape mode
2005-12-23 21:43:48 +00:00
Neal Norwitz
3e7de59bd2
Fix SF #1117398 , cookielib LWPCookieJar and MozillaCookieJar exceptions
...
cookielib.LWPCookieJar and .MozillaCookieJar are documented to raise
cookielib.LoadError on attempt to load an invalid cookies file, but
raise IOError instead. Compromise by having LoadError subclass IOError.
2005-12-23 21:24:35 +00:00
Neal Norwitz
51abbc7b4a
Fix Armin's bug 1333982. He found it, he didn't created it :-)
...
This code generated a C assertion:
assert 1, ([s for s in x] +
[s for s in x])
pass
assert was completely broken, it needed to use the proper block.
compiler_use_block() is now no longer used, so remove it.
2005-12-18 07:06:23 +00:00
Neal Norwitz
db83eb3170
Fix Bug #1378022 , UTF-8 files with a leading BOM crashed the interpreter.
...
Needs backport.
2005-12-18 05:29:30 +00:00
Neal Norwitz
e7214a130b
Get float() to be more portable across platforms. Disable hex strings.
2005-12-18 05:03:17 +00:00
Neal Norwitz
3dafaabfb5
Fix _sys_version() so it works with the new buildno, not sure if it is correct. test_platform passes
2005-12-18 04:10:10 +00:00
Neal Norwitz
8856fb750b
SF Patch #1365916 , mmap fails on AMD64
...
Fix some 64-bit issues due to mismatch format characters w/actual data types
2005-12-18 03:34:22 +00:00
Neal Norwitz
f599f424a2
SF patch #1355913 , PEP 341 - Unification of try/except and try/finally
...
Modified since ast-arenas was implemented.
2005-12-17 21:33:47 +00:00
Hye-Shik Chang
835b243c71
Bug #1379994 : Fix *unicode_escape codecs to encode r'\' as r'\\'
...
just like string codecs.
2005-12-17 04:38:31 +00:00
Fredrik Lundh
8911ca3d70
added encoding tests to ElementTree/cElementTree tests
2005-12-16 22:07:17 +00:00
Georg Brandl
6ee6952eb2
Patch #1360443 : Make SimpleHTTPServer display unencoded directory names.
2005-12-16 19:36:08 +00:00
Georg Brandl
07f159de86
Bug #1378455 : a problem of urllib using open_local_file
2005-12-15 21:59:00 +00:00
Walter Dörwald
3b287702dd
Add two tests for the script interface.
2005-12-15 20:17:20 +00:00
Fredrik Lundh
9235ea4f26
added cElementTree tests
2005-12-15 18:41:22 +00:00
Neal Norwitz
a716eabca7
Revert r41662 and the part of 41552 that originally caused the problem
...
(calling ftell(stdin) doesn't seem defined). So we won't test errors
from ftell unless we can do it portably.
2005-12-15 05:25:09 +00:00
Walter Dörwald
b197543680
If quopri uses the implementations from binascii do the tests a second time
...
using the Python implementations of the functions. This imcreases code
coverage and makes sure that both implementations do the same thing.
2005-12-14 23:32:22 +00:00
Fredrik Lundh
63168a52f4
added PSF licensing blurbs to relevant files
2005-12-14 22:29:34 +00:00
Fredrik Lundh
4c86ec651e
added cElementTree/_elementtree build stuff and wrapper module
2005-12-14 18:46:16 +00:00
Armin Rigo
9ed7306031
Subversion settings:
...
svn:ignore *.pyc *.pyo
svn:eol-style native
The .py files appear to have been checked in with Windows or inconsistent line
endings. The current check-in disrupts the 'svn blame', but hopefully it is
irrelevant for freshly imported code.
2005-12-14 18:10:45 +00:00
Fred Drake
7316ad224d
- remove leftover directory
...
- add file I forgot to add in previous commit
2005-12-14 06:26:11 +00:00
Fred Drake
c6730e1772
move the xml package implementation to xmlcore, and adjust the tests to
...
test that package, not the xmlcore/PyXML switcheroo fiasco in the xml
module/package
2005-12-14 06:20:35 +00:00
Hye-Shik Chang
e2f8e3c14f
Fix test not to fail on FreeBSD. Directories work also as data
...
files on the platform.
2005-12-13 17:06:45 +00:00
Fredrik Lundh
af57fa13f4
r1077@spiff: Fredrik | 2005-12-12 22:58:44 +0100
...
make sure xml.etree can be used even if PyXML is present
(solution proposed by Philip J. Eby)
2005-12-12 21:59:52 +00:00
Fredrik Lundh
0e664e15ef
skip NIS entries, empty entries, etc
2005-12-12 20:53:40 +00:00
Fredrik Lundh
80768f8635
skip nis entries, if not filtered out by getpwall itself
2005-12-12 20:46:31 +00:00
Fredrik Lundh
2a60d9ac2d
added xml.etree test (enough of the ElementTree selftest to
...
make sure that all included components work)
2005-12-12 20:19:44 +00:00
Fredrik Lundh
7e0aef0e75
r1068@spiff: Fredrik | 2005-12-12 19:50:30 +0100
...
assorted xml.etree tweaks
2005-12-12 18:54:55 +00:00
Fredrik Lundh
075854fcc5
added ElementTree core components to xml.etree
2005-12-12 15:10:44 +00:00
Neal Norwitz
f8d403dd97
SF #1377897 , Bus error in ast
...
If a line had multiple semi-colons and ended with a semi-colon, we would
loop too many times and access a NULL node. Exit the loop early if
there are no more children.
2005-12-11 20:12:40 +00:00
Hye-Shik Chang
aaa2f1dea7
Patch #1276356 : Implement new resource "urlfetch" for regrtest.
...
This enables even impatient people to run tests that require remote
files such as test_normalization and test_codecmaps_*.
2005-12-10 17:44:27 +00:00
Neal Norwitz
ec77645df9
mwh spotted a copied error message, make it unique (and correct)
2005-12-05 01:23:48 +00:00
Neal Norwitz
a6fc397a80
Fix SF #1373161 , r41552 broke test_file on OS X
...
You apparently can seek(0) on sys.stdin on OS X.
But you can't go backwards, so seek(-1).
2005-12-05 01:17:03 +00:00
Andrew M. Kuchling
593d6b311e
[Bug #1281032 ] Pass encoding from the input source to pyexpat's ParserCreate()
2005-12-04 19:53:45 +00:00
Andrew M. Kuchling
bdb3901001
[Bug #1164912 ] Ensure Datetime wrapper class .value attribute is an 8-bit string, not a Unicode string
2005-12-04 19:11:17 +00:00
Andrew M. Kuchling
427aedbbd4
[Patch #1039083 ] Add 'encoding' parameter to SimpleXMLRPCServer
2005-12-04 17:13:12 +00:00
Andrew M. Kuchling
ce100d8d4c
Use boolean name
2005-12-04 16:45:05 +00:00
Andrew M. Kuchling
10a16dea74
[Patch #893642 ] Add optional allow_none argument to SimpleXMLRPCServer, CGIXMLRPCRequestHandler
2005-12-04 16:34:40 +00:00
Andrew M. Kuchling
bc6a195344
[Bug #1372836 ] Remove unused code
2005-12-04 16:09:54 +00:00
Andrew M. Kuchling
e63fde72f3
[Bug #792570 ] Under Windows, socket.read() seems to run into trouble when
...
asked to read tens of megabytes of data. On my Mac, it hits MemoryErrors
when reading around 15Mb in one chunk. The fix is to read the body in several
parts, not as one big piece.
It would be nice to fix the underlying socket.read() problem, too.
2.4 bugfix candidate.
2005-12-04 15:36:57 +00:00
Andrew M. Kuchling
3a97605500
[Bug #1222790 ] Set reuse-address and close-on-exec flags on the HTTP listening socket
2005-12-04 15:07:41 +00:00
Walter Dörwald
ede187f022
Test another error case in PyFloat_FromString().
2005-11-29 15:45:14 +00:00
Neal Norwitz
fcf4435ae0
Improve test coverage. Hope the test_file changes work the same on windows.
2005-11-27 20:37:43 +00:00
Martin v. Löwis
307021f40b
Patch #1162825 : Support non-ASCII characters in IDLE window titles.
2005-11-27 16:59:04 +00:00
Georg Brandl
1f663574ee
bug #1365984 : urllib and data: URLs. Problem was that cStringIO objects cannot be assigned attributes on the fly.
2005-11-26 16:50:44 +00:00