Commit Graph

371 Commits

Author SHA1 Message Date
Neal Norwitz
e4b5729e70 Backport Guido's checkins which disabled the bastion tests 2003-01-13 19:24:05 +00:00
Jack Jansen
efe39e59e8 Use \n as line separator in stead of \r\n, which causes problems in MacPython 2.2. 2002-10-10 21:13:53 +00:00
Fred Drake
aff84f751d Fix some code that was added to the r22-maint branch to allow it to work with
arbitrary versions of Expat.
Not applicable to Python 2.3, which will incorporate an Expat that does not
need this crutch.
2002-10-08 19:49:36 +00:00
Fred Drake
c2de205659 Remove unused output file. 2002-09-26 15:53:28 +00:00
Neal Norwitz
bd1ac013fe Backport:
Fix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce Atherton

Add a test too.  urljoin() would make file:/tmp/foo instead of file:///tmp/foo
2002-09-25 19:22:10 +00:00
Marc-André Lemburg
d75b7e1bc7 Regenerate test_unicodedata output after the change to the UTF-8 codec. 2002-09-24 15:01:01 +00:00
Neal Norwitz
df4626fb8a Backport of SF bug # 585792, Invalid mmap crashes Python interpreter
Raise ValueError if user passes a size to mmap which is larger
than the file.

Also need Tim's fix in test_mmap.py, 1.22 which flushes the file
before mmap'ing it.
2002-09-05 22:30:03 +00:00
Tim Peters
4c7e2022a9 A trip down memory lane. Barry checked in this test with 2.3-style
imports of test_support.  That causes multiple copies of test_support
to get loaded, and the one used by test_base64.py didn't see the proper
value of verbose=False, so spewed output.  That in turn apparenly caused
Barry to check in an expected-results output file, but a unitttest-based
test should never have one of those.  I noticed this because, on Windows,
the final unittest output line contains the number of seconds needed to
run the test, and that varied on *some* runs when I tried it, causing
bogus test failures.

Anyway, this gets rid of the expected-output file again, and changes
the imports to work with 2.2's way of doing this.
2002-08-19 01:20:09 +00:00
Barry Warsaw
0c25da5823 Backport of fix for SF bug #595671 from Python 2.3cvs:
base64.decodestring('') should return '' instead of raising an
    exception.  The bug fix for SF #430849 wasn't quite right.  This
    closes SF bug #595671.  I'll backport this to Python 2.2.

One addition here is that there was no test of the base64 module in
Python 2.2 cvs yet, so I added that too.
2002-08-15 22:18:11 +00:00
Tim Peters
a01421bbc7 The atexit module effectively turned itself off if sys.exitfunc already
existed at the time atexit first got imported.  That's a bug, and this
fixes it.

Also reworked test_atexit.py to test for this too, and to stop using
an "expected output" file, and to test what actually happens at exit
instead of just simulating what it thinks atexit will do at exit.
2002-07-16 20:09:08 +00:00
Jeremy Hylton
fde8acacdc Update output for new tests. 2002-07-12 15:52:26 +00:00
Fred Drake
0beb34ce18 Backport buffer() tests trunk to avoid regression failures. 2002-05-02 04:49:48 +00:00
Jeremy Hylton
8ba1671e39 backport fix for SF buf #505315 from trunk 2002-04-20 05:07:05 +00:00
Michael W. Hudson
1c136f35dd amk's fix attached to
[ 516299 ] urlparse can get fragments wrong
2002-03-18 13:03:40 +00:00
Michael W. Hudson
3813281fec backport akuchling's checkin of
revision 1.6 of test_cfgparser

As part of fixing bug #523301, add a simple test of ConfigParser.write()
2002-03-15 10:24:42 +00:00
Michael W. Hudson
1110caf9a4 backport gvanrossum's checkin of
revision 1.7 of test_builtin

SF patch #523169, by Samuele Pedroni.

There were never tests for the fact that list() always returns a *new*
list object, even when the argument is a list, while tuple() may
return a reference to the argument when it is a tuple.  Now there are.
2002-02-28 10:13:26 +00:00
Jeremy Hylton
3095a4c228 Update output generated by test_scope 2001-12-13 19:47:51 +00:00
Guido van Rossum
146483964e Patch supplied by Burton Radons for his own SF bug #487390: Modifying
type.__module__ behavior.

This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this).  Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right.  Apologies if they're
not.  This also touches the weakref docs, which contains a sample type
object initializer.  It also touches the mmap test output, because the
mmap type's repr is included in that output.  It touches object.h to
put the correct description in a comment.
2001-12-08 18:02:58 +00:00
Fred Drake
2998a55f2d Attribute nodes did not always get their ownerDocument and ownerElement
properly set.  This fixes that.
2001-12-06 18:27:48 +00:00
Fred Drake
e50959a58e Fix appendChild() and insertBefore() (and replaceChild() indirectly) when
the node being added is a fragment node.
This closes SF bug #487929.
2001-12-06 04:32:18 +00:00
Marc-André Lemburg
0c4d8d05a8 Fix for bug #480188: printing unicode objects 2001-11-20 15:17:25 +00:00
Tim Peters
5ebfd36afa CVS patch #477161: New "access" keyword for mmap, from Jay T Miller.
This gives mmap() on Windows the ability to create read-only, write-
through and copy-on-write mmaps.  A new keyword argument is introduced
because the mmap() signatures diverged between Windows and Unix, so
while they (now) both support this functionality, there wasn't a way to
spell it in a common way without introducing a new spelling gimmick.
The old spellings are still accepted, so there isn't a backward-
compatibility issue here.
2001-11-13 23:11:19 +00:00
Jeremy Hylton
8edd5402f0 Fix SF buf #480096: Assign to __debug__ still allowed
Easy enough to catch assignment in the compiler.  The perverse user
can still change the value of __debug__, but that may be the least he
can do.
2001-11-09 20:37:13 +00:00
Marc-André Lemburg
b5507ecd3c Additional test and documentation for the unicode() changes.
This patch should also be applied to the 2.2b1 trunk.
2001-10-19 12:02:29 +00:00
Guido van Rossum
4114a4afec Fix the frozen bytecode for __hello__ (betcha didn't know that existed
:-).

Add a test that prevents the __hello__ bytecode from going stale
unnoticed again.

The test also tests the loophole noted in SF bug #404545.  This test
will fail right now; I'll check in the fix in a minute.
2001-10-18 18:49:37 +00:00