Martin v. Löwis
bd28ca65d6
Bug #1704793 : Raise KeyError if unicodedata.lookup cannot
...
represent the result in a single character.
2007-07-28 07:01:43 +00:00
Martin v. Löwis
f25e35b9ec
Bug #978833 : Close https sockets by releasing the _ssl object.
2007-07-27 18:28:22 +00:00
Guido van Rossum
3e1f85eb5d
Fix the minidom test.
...
In order to do this, I added an optional encoding argument to io.StringIO.
The toprettyxml() function returns bytes when you specify an encoding now.
2007-07-27 18:03:11 +00:00
Guido van Rossum
3992db81b6
SF patch# 1759922 by Alexandre Vassalotti.
...
Fix one of the two failing tests for minidom.
2007-07-27 17:26:00 +00:00
Guido van Rossum
624ab7c28a
Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too.
2007-07-27 17:12:11 +00:00
Nick Coghlan
ec2ce9bbae
Make test_math error messages more meaningful for small discrepancies in results
2007-07-27 10:36:30 +00:00
Guido van Rossum
ea8344797e
SF patch# 1757839 by Alexandre Vassalotti (part 2).
...
Change a bunch of .assert_(X == Y) to .assertEqual(X, Y).
2007-07-27 05:17:50 +00:00
Guido van Rossum
f7a94e4b44
SF patch# 1761465 by Jeffrey Yasskin.
...
Fix test_aepack and test_applesingle.
2007-07-27 04:41:00 +00:00
Guido van Rossum
67feb09d06
Delete redundant read() and close() methods from SocketIO class.
2007-07-27 04:38:24 +00:00
Nick Coghlan
00f2029cd5
Add explicit test for a misbehaving math.floor
2007-07-26 14:03:00 +00:00
Brett Cannon
1eb79cfd6d
Move xdrlib over to the bytes type.
2007-07-26 03:19:46 +00:00
Brett Cannon
d24fffe7c6
Move shelve over to BytesIO as pickle.(Pickler | Unpickler) expect binary
...
files, not text files.
test_shelve still fails thanks to bsddb not having been fixed.
2007-07-26 03:07:02 +00:00
Martin v. Löwis
254b8f9096
Change location of the package index to pypi.python.org/pypi
2007-07-25 16:24:23 +00:00
Martin v. Löwis
088277f290
Change location of the package index to pypi.python.org/pypi.
2007-07-25 16:24:08 +00:00
Nick Coghlan
55248d6c61
Add a temporary diagnostic message before a strange failure on the alpha Debian buildbot
2007-07-25 13:18:58 +00:00
Nick Coghlan
d44a5afaa9
More buildbot cleanup - let the OS assign the port for test_urllib2_localnet
2007-07-25 12:57:48 +00:00
Facundo Batista
16ed5b4bfe
New tests for basic behavior of smtplib.SMTP and
...
smtpd.DebuggingServer. Change to use global host & port number
variables. Modified the 'server' to take a string to send back in
order to vary test server responses. Added a test for the reaction of
smtplib.SMTP to a non-200 HELO response. [GSoC - Alan McIntyre]
2007-07-24 21:20:42 +00:00
Nick Coghlan
12adef9b8b
Try to get rid of spurious failure in test_resource on the Debian buildbots by changing the file size limit before attempting to close the file
2007-07-24 14:39:23 +00:00
Nick Coghlan
13c25c08ca
Fix an incompatibility between the -i and -m command line switches as reported on python-dev by PJE - runpy.run_module now leaves any changes it makes to the sys module intact after the function terminates
2007-07-24 13:58:28 +00:00
Nick Coghlan
4f82a03714
Tweak runpy test to do a better job of confirming that sys has been manipulated correctly
2007-07-24 13:07:38 +00:00
Guido van Rossum
51a883bf87
Make test_wave.py pass.
...
I have no illusion that this fixes all issues with this module.
2007-07-23 21:28:30 +00:00
Guido van Rossum
005ebb1f7c
Tweaks to make the codecmaps tests pass again.
...
(To run these, you need to pass -uurlfetch to regrtest.py or runtests.sh.)
2007-07-23 18:06:59 +00:00
Guido van Rossum
4ca9471831
SF patch# 1759016 by Joe Gregorio, who writes:
...
1. Removed "returns_unicode" attribute, associated code
in the module to support that attribute, and all tests
associated with it.
2. Parsed data is now returned as unicode strings.
3. Changed input tests to use io.BytesIO instead
of StringIO, to reflect the byte processing
nature of expat.
2007-07-23 17:42:32 +00:00
Nick Coghlan
ae21fc6d1f
Correctly cleanup sys.modules after executing runpy relative import
...
tests
Restore Python 2.4 ImportError when attempting to execute a package
(as imports cannot be guaranteed to work properly if you try it)
2007-07-23 13:41:45 +00:00
Guido van Rossum
f520c05456
Don't use cwnon-ASCII characters in the source; use \ooo escapes.
...
(This doesn't fix test_cookielib, just removes the SyntaxError.)
2007-07-23 03:46:37 +00:00
Guido van Rossum
accecdf969
Don't use a sleep to wait for the server to be ready; this caused
...
problems on my OSX laptop. use a condition variable instead.
2007-07-23 01:49:28 +00:00
Collin Winter
d745c436fb
Fix test_largefile by changing some string literals to byte literals.
2007-07-23 00:51:28 +00:00
Collin Winter
f86f285bdd
Fix test_poplib failures.
2007-07-23 00:24:10 +00:00
Guido van Rossum
33e7a8e813
Make close() (all versions) ignore IOError from flush().
...
This makes test_resource.py pass, and I think it's the right thing
to do: if you're closing a file after encountering an I/O error
there's nothing you can do about it. If you want the error, you
can call flush() yourself.
2007-07-22 20:38:07 +00:00
Guido van Rossum
ca73d496ec
Remove this test; it checked for a single old bug and I don't think that
...
its failure means much, now that the handling of unicode and bytes has
changed so much.
2007-07-22 20:13:35 +00:00
Guido van Rossum
f8761c781b
Make test_compile not fail.
...
I *think* it's okay no longer to require that compiling a Unicode
string with a coding declaration fails; it seems appropriate to
just ignore it.
2007-07-22 20:01:13 +00:00
Martin v. Löwis
95c95ce5be
Merged revisions 56483-56491 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/p3yk
........
r56486 | kurt.kaiser | 2007-07-22 05:27:08 +0200 (So, 22 Jul 2007) | 2 lines
Fix typo introduced at r55797
........
r56487 | kurt.kaiser | 2007-07-22 07:48:45 +0200 (So, 22 Jul 2007) | 2 lines
Exception attr accessed via args in py3k.
........
r56489 | martin.v.loewis | 2007-07-22 15:32:44 +0200 (So, 22 Jul 2007) | 2 lines
Regenerate.
........
r56490 | martin.v.loewis | 2007-07-22 15:34:06 +0200 (So, 22 Jul 2007) | 2 lines
Port Mac modules to PEP 3123.
........
r56491 | martin.v.loewis | 2007-07-22 16:35:53 +0200 (So, 22 Jul 2007) | 1 line
Port to PEP 3123.
........
2007-07-22 14:41:55 +00:00
Nick Coghlan
f17a2e4f87
Add explicit relative import tests for runpy.run_module
2007-07-22 10:18:07 +00:00
Facundo Batista
7f4f41255f
Selectively enable tests for asyncore.readwrite based on the presence
...
of poll support in the select module (since this is the only case in
which readwrite can be called). [GSoC - Alan McIntyre]
2007-07-22 00:13:00 +00:00
Guido van Rossum
b972a78e17
SF patch# 1757683 by Alexandre Vassalotti. Add support for
...
seeking/writing beyond EOF to io.BytesIO.
2007-07-21 00:25:15 +00:00
Guido van Rossum
d4eda825c7
SF patch# 1757839 by Alexandre Vassalotti -- make test_mailbox and
...
test_old_mailbox pass.
2007-07-21 00:21:26 +00:00
Guido van Rossum
bf4806bac5
SF patch# 1757758 by Alexandre Vassalotti, fixing test_ucn.
2007-07-21 00:15:34 +00:00
Collin Winter
b8b108f306
Make doctest pass by specifying the right encoding.
2007-07-20 18:08:03 +00:00
Guido van Rossum
fb56d8f347
Fix test_uuid.py.
...
Add a note that this module is thread-unsafe. :-(
2007-07-20 17:45:09 +00:00
Guido van Rossum
25d0bd687f
Delete failing test that was checking that a slot declaration with
...
a non-ASCII character in it should fail. Because of PEP 3131 this
test is bogus anyway. Also some cosmetic cleanup.
2007-07-20 17:10:16 +00:00
Martin v. Löwis
3a2e5ce575
Make audioop and its tests use bytes throughout.
2007-07-20 07:36:26 +00:00
Martin v. Löwis
b1a9f2772b
Fix test_doctest: drop u prefixes; explicitly declare
...
encoding as latin-1 if we want it to fail.
2007-07-20 07:13:39 +00:00
Guido van Rossum
36e0a92442
Merged revisions 56443-56466 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/p3yk
................
r56454 | kurt.kaiser | 2007-07-18 22:26:14 -0700 (Wed, 18 Jul 2007) | 2 lines
Make relative imports explicit for py3k
................
r56455 | kurt.kaiser | 2007-07-18 23:12:15 -0700 (Wed, 18 Jul 2007) | 2 lines
Was modifying dict during iteration.
................
r56457 | guido.van.rossum | 2007-07-19 07:33:19 -0700 (Thu, 19 Jul 2007) | 2 lines
Fix failing test.
................
r56466 | guido.van.rossum | 2007-07-19 20:58:16 -0700 (Thu, 19 Jul 2007) | 35 lines
Merged revisions 56413-56465 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r56439 | georg.brandl | 2007-07-17 23:37:55 -0700 (Tue, 17 Jul 2007) | 2 lines
Use "Unix" as platform name, not "UNIX".
........
r56441 | guido.van.rossum | 2007-07-18 10:19:14 -0700 (Wed, 18 Jul 2007) | 3 lines
SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors.
(Slightly tweaked for style and refcounts.)
........
r56444 | kurt.kaiser | 2007-07-18 12:58:42 -0700 (Wed, 18 Jul 2007) | 2 lines
Fix failing unicode test caused by change to ast.c at r56441
........
r56451 | georg.brandl | 2007-07-18 15:36:53 -0700 (Wed, 18 Jul 2007) | 2 lines
Add description for wave.setcomptype() values
........
r56456 | walter.doerwald | 2007-07-19 06:04:38 -0700 (Thu, 19 Jul 2007) | 3 lines
Document that codecs.lookup() returns a CodecInfo object.
(fixes SF bug #1754453 ).
........
r56463 | facundo.batista | 2007-07-19 16:57:38 -0700 (Thu, 19 Jul 2007) | 6 lines
Added a select.select call in the test server loop to make sure the
socket is ready to be read from before attempting a read (this
prevents an error 10035 on some Windows platforms). [GSoC - Alan
McIntyre]
........
................
2007-07-20 04:05:57 +00:00
Guido van Rossum
f66263c20a
Fix test_cookie.py.
2007-07-20 00:30:38 +00:00
Guido van Rossum
99603b0c1e
Getting rid of cPickle. Mmm, feels good!
2007-07-20 00:22:32 +00:00
Facundo Batista
b1994b4a5d
Added a select.select call in the test server loop to make sure the
...
socket is ready to be read from before attempting a read (this
prevents an error 10035 on some Windows platforms). [GSoC - Alan
McIntyre]
2007-07-19 23:57:38 +00:00
Guido van Rossum
be6fe5476c
Make test_datetime.py pass by killing all references to cPickle in it.
2007-07-19 23:55:34 +00:00
Guido van Rossum
f93254d299
Fix test_pickle, by reverting the string opcodes (S, T, U) to returning
...
strings, in Latin-1. Bytes are once more pickled through bytes.__reduce__,
but now it returns "latin-1" as the second parameter.
Unfortunately this breaks datetime pickling. I'll have to investigate
further; reverting Martin's changes doesn't seem to help.
2007-07-19 22:19:35 +00:00
Guido van Rossum
814661e0d4
Fix test_zipfile.py. (Why was it passing before?)
...
The usual str/bytes issues.
BTW, perhaps zipfp.open() should behave more like io.open()?
2007-07-18 22:07:29 +00:00
Guido van Rossum
697a84b16c
Make test_unicode pass after the lexer was fixed to turn unicode errors
...
into syntax errors.
2007-07-18 21:02:47 +00:00