Senthil Kumaran
d281c73536
#17648 - convert test_urllib2.py doctests to unittests
2013-04-09 06:00:16 -07:00
Senthil Kumaran
fa1b02a126
#17648 - Clean up test_urllib2.py. Converted doctests to unittest for
...
expansion.
2013-04-08 22:24:17 -07:00
Victor Stinner
9fc5981ea2
Issue #17615 : Add tests comparing Unicode strings of different kinds
...
Kinds: ascii, latin, bmp, astral.
2013-04-08 22:34:43 +02:00
Serhiy Storchaka
ffcd339aac
Close #17666 : Fix reading gzip files with an extra field.
2013-04-08 22:37:15 +03:00
Serhiy Storchaka
7e69f0085e
Close #17666 : Fix reading gzip files with an extra field.
2013-04-08 22:35:02 +03:00
R David Murray
c137f7c065
#17484 : Actually add the getpass tests this time.
2013-04-08 08:48:03 -04:00
R David Murray
319d58d599
#17484 : add tests for getpass.
...
Patch by Thomas Fenzl.
2013-04-08 01:48:22 -04:00
Serhiy Storchaka
ee57f159af
Revert a premature patch for issue #14010 (changeset 846bd418aee5).
2013-04-06 22:55:12 +03:00
Serhiy Storchaka
278d03bd66
Revert a premature patch for issue #14010 (changeset aaaf36026511).
2013-04-06 22:52:34 +03:00
Serhiy Storchaka
aac81e2780
Issue #14010 : Fix a crash when iterating or deleting deeply nested filters
...
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
2013-04-06 21:20:30 +03:00
Serhiy Storchaka
e8f706eda7
Issue #14010 : Fix a crash when iterating or deleting deeply nested filters
...
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
2013-04-06 21:14:43 +03:00
Andrew Svetlov
ace34dda0a
#17365 : Remove Python 2 code from test_print
...
Patch by Berker Peksag
2013-04-04 22:32:28 +03:00
Ezio Melotti
d57f047665
#17572 : merge with 3.3.
2013-04-04 02:16:27 +03:00
Ezio Melotti
0f38908684
#17572 : Avoid chained exceptions while passing bad directives to time.strptime(). Initial patch by Claudiu Popa.
2013-04-04 02:09:20 +03:00
Victor Stinner
cfc4c13b04
Add _PyUnicodeWriter_WriteSubstring() function
...
Write a function to enable more optimizations:
* If the substring is the whole string and overallocation is disabled, just
keep a reference to the string, don't copy characters
* Avoid a call to the expensive _PyUnicode_FindMaxChar() function when
possible
2013-04-03 01:48:39 +02:00
Victor Stinner
4489e927a6
(Merge 3.3) Close #6822 : ftplib.FTP.storlines() expects a binary file, not a text file
...
Add an unit test to ensure that text files are rejectect (with TypeError)
2013-04-02 22:13:49 +02:00
Victor Stinner
ed3a303548
Close #6822 : ftplib.FTP.storlines() expects a binary file, not a text file
...
Add an unit test to ensure that text files are rejectect (with TypeError)
2013-04-02 22:13:27 +02:00
R David Murray
e3e1c17e08
#17492 : Additional tests for random module.
...
Patch by Victor Terrón.
2013-04-02 12:47:23 -04:00
Brett Cannon
49e835bec6
Issue #14135 : Let's try this again.
2013-04-01 14:11:37 -04:00
Antoine Pitrou
7d197de987
Backed out changeset 4fcd50a6dca7 as it totally breaks the test suite here.
2013-04-01 18:54:45 +02:00
Brett Cannon
2d556f56db
Issue #14135 : Make sure tests don't leave the locale changed for any
...
category.
Thanks to Westley Martinez for trying to fix the issue and Atsuo
Ishimoto for an initial patch.
2013-04-01 12:53:13 -04:00
Charles-Francois Natali
f61d07903e
Issue #6419 : Fix a test_kqueue failure on some BSD flavors.
2013-03-31 20:37:34 +02:00
Charles-Francois Natali
7a03e2d377
Issue #6419 : Fix a test_kqueue failure on some BSD flavors.
2013-03-31 20:36:57 +02:00
Gregory P. Smith
2b3a35b5dd
skip a fcntl test on ARM Linux that isn't supported there.
2013-03-31 10:25:42 -07:00
Gregory P. Smith
e5aefa452b
Skip a test of an old API on ARM Linux that isn't supported by the OS.
2013-03-31 10:10:50 -07:00
R David Murray
5cbf3a0d6e
Merge #17435 : Don't use mutable default values in Timer.
...
Patch by Denver Coneybeare with some test modifications by me.
2013-03-30 17:22:30 -04:00
R David Murray
19aeb439c6
Issue #17435 : Don't use mutable default values in Timer.
...
Patch by Denver Coneybeare with some test modifications by me.
2013-03-30 17:19:38 -04:00
Ezio Melotti
0503de9c83
#17526 : merge with 3.3.
2013-03-30 05:19:06 +02:00
Ezio Melotti
1b145927d7
#17526 : fix an IndexError raised while passing code without filename to inspect.findsource(). Initial patch by Tyler Doyle.
2013-03-30 05:17:24 +02:00
Ezio Melotti
8c0fc15c41
#17564 : merge with 3.3.
2013-03-30 01:33:46 +02:00
Ezio Melotti
9098472299
#17564 : skip test_bad_address unless the tests are run with -unetwork/-uall.
2013-03-30 01:28:40 +02:00
Vinay Sajip
04cc55a14c
Closes #17540 : Merged fix from 3.3.
2013-03-29 17:59:15 +00:00
Vinay Sajip
28421c6f62
Issue #17540 : Added style to Formatter configuration by dict.
2013-03-29 17:56:54 +00:00
Antoine Pitrou
609ef01b02
In search of TLS 1.1 bug: add debugging output in verbose mode
2013-03-29 18:09:06 +01:00
Antoine Pitrou
972d5bb763
Use a subtest in test_ssl.test_echo
2013-03-29 17:56:03 +01:00
Antoine Pitrou
2463e5fee4
Issue #16692 : The ssl module now supports TLS 1.1 and TLS 1.2. Initial patch by Michele Orrù.
2013-03-28 22:24:43 +01:00
Victor Stinner
678ad51b38
Issue #17516 : remove dead code
2013-03-26 01:14:35 +01:00
Victor Stinner
3fa1aaebde
Issue #17516 : do not create useless tuple: remove dummy commas in tests
2013-03-26 01:14:08 +01:00
Victor Stinner
765531d2d0
Issue #17516 : use comment syntax for comments, instead of multiline string
2013-03-26 01:11:54 +01:00
Ezio Melotti
1f8898a591
#17323 : The "[X refs, Y blocks]" printed by debug builds has been disabled by default. It can be re-enabled with the `-X showrefcount` option.
2013-03-26 01:59:56 +02:00
Ezio Melotti
23c31d5192
Merge test_queue clean up from 3.3.
2013-03-23 23:37:38 +02:00
Ezio Melotti
93f756b274
Merge test_queue clean up from 3.2.
2013-03-23 23:36:23 +02:00
Ezio Melotti
656c80809c
Clean up references to threads in test_queue.
2013-03-23 23:35:06 +02:00
Antoine Pitrou
64c16c3311
Issue #17150 : pprint now uses line continuations to wrap long string literals.
2013-03-23 20:30:39 +01:00
Gregory P. Smith
4a8ea9e2a6
Fixes issue #17488 : Change the subprocess.Popen bufsize parameter default value
...
from unbuffered (0) to buffering (-1) to match the behavior existing code
expects and match the behavior of the subprocess module in Python 2 to avoid
introducing hard to track down bugs.
2013-03-23 12:00:00 -07:00
Gregory P. Smith
a1b9ed32ee
Fixes issue #17488 : Change the subprocess.Popen bufsize parameter default value
...
from unbuffered (0) to buffering (-1) to match the behavior existing code
expects and match the behavior of the subprocess module in Python 2 to avoid
introducing hard to track down bugs.
2013-03-23 11:54:22 -07:00
Gregory P. Smith
a1ed539268
Fixes issue #17488 : Change the subprocess.Popen bufsize parameter default value
...
from unbuffered (0) to buffering (-1) to match the behavior existing code
expects and match the behavior of the subprocess module in Python 2 to avoid
introducing hard to track down bugs.
2013-03-23 11:44:25 -07:00
Ezio Melotti
e94cbd188b
#17479 : merge with 3.3.
2013-03-23 16:36:58 +02:00
Ezio Melotti
daa42c778e
#17479 : test_io now works with unittest test discovery. Patch by Zachary Ware.
2013-03-23 16:30:16 +02:00
Vinay Sajip
8ec95b81d5
Closes #17521 : Merged fix from 3.3.
2013-03-23 11:23:05 +00:00
Vinay Sajip
9b862b9d66
Issue #17521 : Merged fix from 3.2.
2013-03-23 11:22:00 +00:00
Vinay Sajip
68b4cc87cd
Issue #17521 : Corrected non-enabling of logger following two calls to fileConfig().
2013-03-23 11:18:45 +00:00
Vinay Sajip
5a63fe6813
Closes #17508 : Merged fix from 3.3.
2013-03-22 15:27:52 +00:00
Vinay Sajip
340a4bb2fe
Issue #17508 : Merged fix from 3.2.
2013-03-22 15:23:13 +00:00
Vinay Sajip
3f885b5432
Issue #17508 : Handled out-of-order handler configuration correctly.
2013-03-22 15:19:54 +00:00
R David Murray
f516388de8
#17472 : add tests for a couple of untested methods in urllib.urlparse.
...
Original patch by Daniel Wozniak.
2013-03-21 20:56:51 -04:00
Victor Stinner
d502a07fac
test_ast: pass the filename to ast.parse()
2013-03-22 00:06:20 +01:00
R David Murray
e0a1bf313f
Merge: #5713 : One more test_smtplib timing fix.
2013-03-21 00:33:30 -04:00
R David Murray
6bd5202227
#5713 : One more test_smtplib timing fix.
2013-03-21 00:32:31 -04:00
R David Murray
dac94d619c
Merge: #5712 : Preemptively fix some other possible timing issues.
2013-03-20 22:12:53 -04:00
R David Murray
54bd49d49b
Merge: #5712 : Preemptively fix some other possible timing issues.
2013-03-20 22:12:14 -04:00
R David Murray
03b0116c78
#5712 : Preemptively fix some other possible timing issues.
2013-03-20 22:11:40 -04:00
R David Murray
ba7d9d46f2
Merge: #5713 : fix timing issue in smtplib tests.
2013-03-20 21:56:03 -04:00
R David Murray
a686ed7d10
Merge: #5713 : fix timing issue in smtplib tests.
2013-03-20 21:55:14 -04:00
R David Murray
853c0f9d60
#5713 : fix timing issue in smtplib tests.
2013-03-20 21:54:05 -04:00
R David Murray
82c6b45c14
Merge: #5713 : Handle 421 error codes during sendmail by closing the socket.
...
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.
Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
2013-03-20 21:13:56 -04:00
R David Murray
f1a40b4ec5
Merge: #5713 : Handle 421 error codes during sendmail by closing the socket.
...
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.
Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
2013-03-20 21:12:17 -04:00
R David Murray
d312c740f1
#5713 : Handle 421 error codes during sendmail by closing the socket.
...
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.
Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
2013-03-20 20:36:14 -04:00
Kristján Valur Jónsson
6168362509
Issue #16475 : Correctly handle the EOF when reading marshal streams.
2013-03-20 14:26:33 -07:00
Antoine Pitrou
c9b3ef2df0
Issue #16997 : unittest.TestCase now provides a subTest() context manager to procedurally generate, in an easy way, small test instances.
2013-03-20 20:16:47 +01:00
Ezio Melotti
a612176c9c
#17493 : merge with 3.3.
2013-03-20 18:16:05 +02:00
Ezio Melotti
a49178e48e
#17493 : merge with 3.2.
2013-03-20 18:15:37 +02:00
Ezio Melotti
958f7ae865
#17493 : re-enable a test on Windows. Patch by Zachary Ware.
2013-03-20 18:14:48 +02:00
Gregory P. Smith
016b9e38f7
Use a larger amount of data for tests such as the interrupted_write
...
tests that depend on filling up an OS pipe so that they work properly
on systems configured with large pipe buffers.
Also a subprocess docstring update that i forgot was in my client when
i did the original 3.3 commit... easier to just leave that in here
with this one than go back and undo/redo.
2013-03-19 23:27:09 -07:00
Gregory P. Smith
91110f5e55
Use a larger amount of data for tests such as the interrupted_write
...
tests that depend on filling up an OS pipe so that they work properly
on systems configured with large pipe buffers.
2013-03-19 23:25:16 -07:00
R David Murray
9cc7d45571
#17485 : Delete the Content-Length header if the data attribute is deleted.
...
This is a follow on to issue 16464. Original patch by Daniel Wozniak.
2013-03-20 00:10:51 -04:00
Kristján Valur Jónsson
d7009c6913
Issue #16475 : Support object instancing, recursion and interned strings
...
in marshal
2013-03-19 18:02:10 -07:00
R David Murray
c7c42efb16
#15927 : Fix cvs.reader parsing of escaped \r\n with quoting off.
...
This fix means that such values are correctly roundtripped, since
cvs.writer already does the correct escaping.
Patch by Michael Johnson.
2013-03-19 22:41:47 -04:00
Senthil Kumaran
94f2788a85
#17471 : merge from 3.3
2013-03-19 16:52:06 -07:00
Senthil Kumaran
f47e77f343
#17471 - merge from 3.2
2013-03-19 16:46:34 -07:00
Senthil Kumaran
2a4d24510a
#17471 - Increasing the urllib.error test coverage. Bringing it to 100%. Based on patch contributed by Daniel Wozniak
2013-03-19 16:11:07 -07:00
Senthil Kumaran
0085ce8920
#17471 - merge from 3.3
2013-03-19 13:44:42 -07:00
Senthil Kumaran
d17ca23828
#17471 - merge from 3.2
2013-03-19 13:44:17 -07:00
Senthil Kumaran
843fae9312
#17471 - Improve urllib2 test coverage. Patch contributed by Daniel Wozniak
2013-03-19 13:43:42 -07:00
Senthil Kumaran
e9853daff9
Refactor test_urllib2. Include test_HTTPError_interface under MiscTests
2013-03-19 12:07:43 -07:00
R David Murray
ac0cea5fab
Merge: #17476 : make allmethods actually return all methods.
...
This fixes a regression relative to Python2. (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).
This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.
Original patch by Matt Bachmann.
2013-03-19 02:47:44 -04:00
R David Murray
52dfc74080
#17476 : make allmethods actually return all methods.
...
This fixes a regression relative to Python2. (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).
This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.
Original patch by Matt Bachmann.
2013-03-19 02:32:35 -04:00
R David Murray
9929bc543a
#17476 : make allmethods actually return all methods.
...
This fixes a regression relative to Python2. (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).
This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.
Original patch by Matt Bachmann.
2013-03-19 02:31:06 -04:00
R David Murray
455f296188
#17464 : improve pydoc test coverage.
...
Patch by Matt Bachmann.
2013-03-19 00:00:33 -04:00
Senthil Kumaran
41518b4af0
#17474 - Remove the various deprecated methods of Request class.
2013-03-18 18:06:00 -07:00
R David Murray
1a48b9dd7d
#5024 : whichhdr now returns the frame count for WAV files.
...
Patch by Ned Jackson Lovely based on a suggestion by Robert Pyle.
2013-03-18 17:42:42 -04:00
Benjamin Peterson
cda75be02a
unify some ast.argument's attrs; change Attribute column offset ( closes #16795 )
...
Patch from Sven Brauch.
2013-03-18 10:48:58 -07:00
Andrew Svetlov
c45e041bff
Issue #17463 : Fix test discovery for test_pdb.py
2013-03-18 10:10:08 -07:00
Andrew Svetlov
f0efea0841
Issue #17463 : Fix test discovery for test_pdb.py
2013-03-18 10:09:50 -07:00
R David Murray
0351928359
Merge #17448 : Make test_sax skip if there are no xml parsers.
...
Patch by Rafael Santos.
2013-03-18 00:21:43 -04:00
R David Murray
f3a1b6efe0
Merge #17448 : Make test_sax skip if there are no xml parsers.
...
Patch by Rafael Santos.
2013-03-18 00:20:43 -04:00
R David Murray
a846f5ace8
#17448 : Make test_sax skip if there are no xml parsers.
...
Patch by Rafael Santos.
2013-03-18 00:18:12 -04:00
Ezio Melotti
469da97c1e
#11420 : merge with 3.3.
2013-03-16 21:50:04 +02:00
Ezio Melotti
e5e7a7cbf4
#11420 : merge with 3.2.
2013-03-16 21:49:20 +02:00
Ezio Melotti
c28f6fa505
#11420 : make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters.
2013-03-16 19:48:51 +02:00