Barry Warsaw
25a3864541
Port r54805 from python25-maint branch:
...
Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read. Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write. This will definitely happen on Mac OS X and could potentially
happen on other platforms. See the comment for details.
2007-04-13 18:47:14 +00:00
Walter Dörwald
4234827e99
Fix utf-8-sig incremental decoder, which didn't recognise a BOM when the
...
first chunk fed to the decoder started with a BOM, but was longer than 3 bytes.
2007-04-12 10:35:00 +00:00
Žiga Seilnacht
9aba6d6905
Patch #1695862 : remove the cleanup code, now that Windows buildbots are green
...
again.
2007-04-12 08:46:51 +00:00
Georg Brandl
e2d827d7ef
Patch #1698951 : clarify deprecation message in rexec and Bastion
2007-04-12 07:01:19 +00:00
Raymond Hettinger
4db5fe970c
SF 1193128: Let str.translate(None) be an identity transformation
2007-04-12 04:10:00 +00:00
Georg Brandl
5176180610
Repair missing spaces after \UNIX.
2007-04-11 23:28:44 +00:00
Georg Brandl
135c3174e7
Exceptions are no longer old-style instances. Fix accordingly.
2007-04-11 19:25:11 +00:00
Raymond Hettinger
13936697f6
SF 1191699: Make slices picklable
2007-04-11 18:40:58 +00:00
Georg Brandl
c02e13122b
Add some missing NULL checks which trigger crashes on low-memory conditions.
...
Found by Victor Stinner. Will backport when 2.5 branch is unfrozen.
2007-04-11 17:16:24 +00:00
Andrew M. Kuchling
5bf02cd17f
Describe undocumented third argument to touchline()
2007-04-11 13:47:13 +00:00
Andrew M. Kuchling
a6fbc1eabb
Point readers at the patch submission instructions
2007-04-11 13:42:25 +00:00
Andrew M. Kuchling
400a49ba79
Add window.chgat() method, submitted via e-mail by Fabian Kreutz
2007-04-11 13:39:00 +00:00
Georg Brandl
781aef2d6b
Repair a duplicate label and some obsolete uses of \setindexsubitem.
2007-04-10 21:39:38 +00:00
Facundo Batista
59c5884b4c
General clean-up. Lot of margin corrections, comments, some typos.
...
Exceptions now are raised in the new style. And a mockup class is
now also new style. Thanks Santiago Pereson.
2007-04-10 12:58:45 +00:00
Collin Winter
8341aac123
Typo fix.
2007-04-10 04:44:49 +00:00
Facundo Batista
3bdc002e39
Minor fix to the tests pass ok even with -O.
2007-04-10 03:00:37 +00:00
Žiga Seilnacht
d5b3fed17d
Patch #1695862 : remove old test directory that causes test_urllib failures
...
on Windows buildbots. The change is a one time fix and will be removed
after a successful buildbot run.
2007-04-09 19:10:29 +00:00
Vinay Sajip
aa7b16a888
Added optional timeout to SocketHandler.makeSocket (SF #1695948 )
2007-04-09 16:16:10 +00:00
Brett Cannon
55a1864832
Doc that file.next() has undefined behaviour when called on a file opened with
...
'w'. Closes bug #1569057 .
To be backported once 2.5 branch is unfrozen.
2007-04-08 04:29:32 +00:00
Collin Winter
bf61856427
Convert test_fileinput to use unittest.
2007-04-07 04:40:43 +00:00
Collin Winter
69c955f05d
Convert test_module to use unittest.
2007-04-06 20:03:11 +00:00
Collin Winter
fef1dcf433
Convert test_gc to use unittest.
2007-04-06 20:00:05 +00:00
Collin Winter
e10deca7e0
Import cleanup in test_crypt.
2007-04-06 19:32:32 +00:00
Collin Winter
1dd9a2ccc3
Convert test_stringprep to use unittest.
2007-04-06 19:27:40 +00:00
Andrew M. Kuchling
615b49b097
Some grammar fixes
2007-04-06 01:11:58 +00:00
Collin Winter
9405609c17
Convert test_normalization to use unittest.
2007-04-05 20:08:56 +00:00
Collin Winter
fe712fb9ca
Convert test_long_future to use unittest.
2007-04-05 20:05:07 +00:00
Raymond Hettinger
7a3d41f4ca
Bug #1563759 : struct.unpack doens't support buffer protocol objects
2007-04-05 18:00:03 +00:00
Žiga Seilnacht
18ffe42b4b
Fix WalkTests.test_traversal() on Windows. The cleanup in
...
MakedirTests.setUp() can now be removed.
2007-04-04 18:38:47 +00:00
Collin Winter
10fe455529
Make test_softspace use unittest.
2007-04-04 18:36:30 +00:00
Collin Winter
82c3671565
Make test_getopt use unittest.
2007-04-04 18:33:40 +00:00
Martin v. Löwis
3bf573f918
Bug #1686475 : Support stat'ing open files on Windows again.
...
Will backport to 2.5.
2007-04-04 18:30:36 +00:00
Collin Winter
80e8c998a2
Stop using test_support.verify().
2007-04-04 18:16:24 +00:00
Collin Winter
9475db7662
Clean up imports.
2007-04-04 18:14:17 +00:00
Guido van Rossum
b1bb01e2f6
Fix a race condition in this test -- instead of assuming that it will take
...
the test server thread at most 0.5 seconds to get ready, use an event
variable.
2007-04-04 17:43:02 +00:00
Facundo Batista
06c6579036
Fixed the way that the .pem files are looked for, and changed
...
how to kill the process in win32 to use the _handle attribute.
2007-04-04 14:10:40 +00:00
Facundo Batista
a0da5c7bce
Changed the whole structure of startup and checking if the
...
server is available. Hope to not get more false alarms.
2007-04-03 21:15:34 +00:00
Walter Dörwald
e6dae6c655
Implement a contextmanager test.test_support.catch_warning that can
...
be used to catch the last warning issued by the warning framework.
Change test_warnings.py and test_structmembers.py to use this
new contextmanager.
2007-04-03 18:33:29 +00:00
Facundo Batista
c4a106733c
Added a SSL server to test_socket_ssl.py to be able to test
...
locally. Now, it checks if have openssl available and run
those specific tests (it starts openssl at the beggining of
all the tests and then kills it at the end).
2007-04-03 17:29:48 +00:00
Walter Dörwald
e1a9b42c38
Add tests for the filename.
...
Test that the stacklevel is handled correctly.
2007-04-03 16:53:43 +00:00
Walter Dörwald
8bd65000d7
Document that CatchWarningTests is reused by test_structmembers.py.
2007-04-03 16:16:24 +00:00
Walter Dörwald
d815d357b2
Move the functionality for catching warnings in test_warnings.py into a separate
...
class to that reusing the functionality in test_structmembers.py doesn't rerun
the tests from test_warnings.py.
2007-04-03 16:08:10 +00:00
Facundo Batista
c3a35e19cc
Now using unittest for the tests infraestructure. Also split the
...
tests in those who need the network, and that who doesn't.
2007-04-03 14:05:08 +00:00
Georg Brandl
b28ef9b429
Fix the strange case of
...
\begin{methoddesc}[NNTP]{...}
where
\ifx#1\@undefined ended up comparing N and N, therefore executing
the true part of the conditional, blowing up at \@undefined.
2007-04-03 07:04:27 +00:00
Matthias Klose
e19e0c21ae
- Fix an off-by-one bug in locale.strxfrm().
...
patch taken from http://bugs.debian.org/416934 .
2007-04-03 04:35:59 +00:00
Raymond Hettinger
9e56d5beeb
SF #1382213 : Tutorial section 9.5.1 ignores MRO for new-style classes
2007-04-03 01:39:43 +00:00
Raymond Hettinger
7352cf5935
SF 1602378 Clarify docstrings for bisect
2007-04-03 00:02:11 +00:00
Guido van Rossum
ab8802a4f7
Fix warnings about object.__init__() signature.
...
Two (test_array and test_descr) were bug IMO; the third (copy_reg)
is a work-around which recognizes that object.__init__() doesn't do
anything.
2007-04-02 23:55:37 +00:00
Raymond Hettinger
01a807db2a
Array module's buffer interface can now handle empty arrays.
2007-04-02 22:54:21 +00:00
Raymond Hettinger
e6e660bde3
SF #1693079 : Cannot save empty array in shelve
2007-04-02 17:29:30 +00:00