Commit Graph

10373 Commits

Author SHA1 Message Date
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
Walter Dörwald
9356fb9881 SF patch #1364545: test_cmd_line.py relied on english error messages when
invoking the Python interpreter (which didn't work on non-english Windows
versions). Check return codes instead.
2005-11-25 15:22:10 +00:00
Neal Norwitz
212a575242 Remove unused _callers member. No need for types, use isinstance 2005-11-25 03:19:29 +00:00
Neal Norwitz
ef260c0803 Stop looping to do nothing, just pass. 2005-11-25 03:18:58 +00:00
Neal Norwitz
d752f7d8e8 No need for types, use isinstance 2005-11-25 03:17:59 +00:00
Neal Norwitz
f9232678ae Use sorted() builtin 2005-11-25 03:16:34 +00:00
Neal Norwitz
89886ab2b0 Test is still disabled, but access through public module 2005-11-25 03:15:49 +00:00
Neal Norwitz
21d19f7203 Get symtable to limp along, can run compiler/symbols.py. Not saying much, needs more work. 2005-11-25 03:14:00 +00:00
Neal Norwitz
545d4962f5 Cleanup a bit more references so test_urllibnet is stable (test_urllib2 is sometimes stable, at least in isolation) 2005-11-25 02:55:49 +00:00