Commit Graph

11937 Commits

Author SHA1 Message Date
Collin Winter c20a250170 Check the availability of the urlfetch resource earlier than before. 2007-04-16 22:10:32 +00:00
Neal Norwitz cbd9ee69ee When __slots__ are set to a unicode string, make it work the same as
setting a plain string, ie don't expand to single letter identifiers.
2007-04-14 05:25:50 +00:00
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 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
Andrew M. Kuchling 400a49ba79 Add window.chgat() method, submitted via e-mail by Fabian Kreutz 2007-04-11 13:39:00 +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
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
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
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
Brett Cannon c7a2e4656e Fix the test for recreating the locale cache object by not worrying about if
one of the test locales cannot be set.
2007-04-01 19:46:19 +00:00
Brett Cannon c69066501b time.strptime's caching of its locale object was being recreated when the
locale changed but not used during the function call it was recreated during.

The test in this checkin is untested (OS X does not have the proper locale
support for me to test), although the fix for the bug this deals with
was tested by the OP (#1290505).  Once the buildbots verify the test at least
doesn't fail it becomes a backport candidate.
2007-04-01 18:47:27 +00:00
Neal Norwitz 8f35f44af3 SF #1685563, MSVCCompiler creates redundant and long PATH strings
If MSVCCompiler.initialize() was called multiple times, the path
would get duplicated.  On Windows, this is a problem because the
path is limited to 4k.  There's no benefit in adding a path multiple
times, so prevent that from occuring.  We also normalize the path
before checking for duplicates so things like /a and /a/ won't both
be stored.

Will backport.
2007-04-01 18:24:22 +00:00
Collin Winter 1520fe4e58 Shut up an occaisonal buildbot error due to test files being left around. 2007-03-31 19:31:34 +00:00
Marc-André Lemburg 2365fcde60 Bump the patch level version of distutils since there were a few bug fixes since
the 2.5.0 release.
2007-03-30 15:01:42 +00:00
Facundo Batista 93c33680a0 Added the posibility to pass the timeout to FTP.connect, not only when
instantiating the class. Docs and tests are updated.
2007-03-30 13:00:35 +00:00
Facundo Batista b6a5c9d605 Added timout parameter to telnetlib.Telnet. Also created
test_telnetlib.py with a basic test and timeout ones.
Docs are also updated.
2007-03-29 18:22:35 +00:00
Collin Winter 04a51ec8a3 Make test_zipfile clean up its temporary files properly. 2007-03-29 02:28:16 +00:00