Commit Graph

18675 Commits

Author SHA1 Message Date
Antoine Pitrou 131a489903 Add tests for the writelines() method of file objects.
Original patch by Felipe Cruz.
2012-10-16 22:57:11 +02:00
Vinay Sajip ee892b9226 Issue #16244: Remove file mode overrides. 2012-10-16 10:28:31 +01:00
Benjamin Peterson 7a9953edfb skip if __doc__ is gone 2012-10-12 11:44:19 -04:00
Benjamin Peterson 951a9e381b fix to work if __doc__ is removed 2012-10-12 11:44:10 -04:00
Brian Curtin 0b960f5a58 Fix #16176. Properly identify Windows 8 via platform.platform()
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
2012-10-11 16:07:52 -05:00
Gregory P. Smith 5591b02a4c Fixes Issue #16114: The subprocess module no longer provides a
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.

It now keeps track of if the child got as far as preexec and reports it if
not back to the parent via a special "noexec" error message value in
the error pipe so that the cwd can be blamed for a failed chdir
instead of the exec of the executable being blamed instead.

The executable is also always reported accurately when exec fails.

Unittests enhanced to cover these cases.
2012-10-10 03:34:47 -07:00
Vinay Sajip b5ca932be2 Issue #16168: Use specified socket type for domain sockets in SysLogHandler. 2012-10-09 08:19:25 +01:00
Andrew Svetlov c3e5b10ae7 Issue #14900: Add aliases for sorting params for pstat to follow column names from pstat output.
Patch by Arne Babenhauserheide.
2012-10-07 19:18:39 +03:00
Andrew Svetlov 2ef4584e6d Issue #14900: Distuguish call count and primitive call count in pstat output.
Patch by Arne Babenhauserheide.
2012-10-07 18:58:42 +03:00
Andrew Svetlov b2209ccfa0 revert accidental inclusion of subprocess tests 2012-10-06 18:45:24 +03:00
Andrew Svetlov afbf90c993 Issue #16025: Minor corrections to the zipfile documentation.
Patch by Serhiy Storchaka.
2012-10-06 18:02:05 +03:00
Jesus Cea 685fffa8f4 #16112: platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch 2012-10-05 05:21:42 +02:00
Jesus Cea adc8211e00 #16112: platform.architecture does not correctly escape argument to /usr/bin/file. Use 'communicate()' and decode the bytes 2012-10-05 04:58:38 +02:00
Andrew Svetlov 4ca222d4d5 Issue #14997: disable <F5> in idle shell window.
Thanks to Roger Serwy for patch.
2012-10-04 22:48:34 +03:00
Jesus Cea fc990e942f Closes #16112: platform.architecture does not correctly escape argument to /usr/bin/file 2012-10-04 13:51:43 +02:00
Chris Jerdonek c2cd626497 Issue #15533: Skip test_cwd_with_relative_*() tests on Windows pending resolution of issue. 2012-09-30 09:45:00 -07:00
Chris Jerdonek ec3ea94251 Issue #15533: Clarify docs and add tests for subprocess.Popen()'s cwd argument. 2012-09-30 00:10:28 -07:00
Antoine Pitrou f727082b71 Speed up test_httpservers by avoiding a one-second cleanup wait after each test case. 2012-09-30 01:05:30 +02:00
Gregory P. Smith 3905171f1e Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD
to return a returncode of 0 when the child has already exited or cannot
be waited on.
2012-09-29 11:40:38 -07:00
Michael Foord 7a1901f861 Closes issue #12376 : Pass on parameters in unittest.TextTestResult.__init__ super call 2012-09-28 14:14:03 +01:00
Petri Lehtinen f39884bb5a #15222: Insert blank line after each message in mbox mailboxes 2012-09-25 22:02:06 +03:00
Petri Lehtinen 468091954f #15222: test_mailbox: End message template in a newline 2012-09-25 21:58:51 +03:00
Benjamin Peterson 1654d74e9a switch assertion to an explicit ValueError 2012-09-25 11:48:50 -04:00
Benjamin Peterson a820c7ca70 fix test_compileall when run with -O[O] 2012-09-25 11:42:35 -04:00
Benjamin Peterson d388c4e02f use modern conditional syntax 2012-09-25 11:01:41 -04:00
Senthil Kumaran 67b7b98a47 Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. 2012-09-25 02:30:27 -07:00
Christian Heimes e26d3af7ee Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD()
method doesn't require an argument again.
2012-09-24 13:17:08 +02:00
Antoine Pitrou 6f80f5d444 Issue #15379: Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
Patch by Serhiy Storchaka.
2012-09-23 19:55:21 +02:00
Ezio Melotti 85710a40e7 #15421: fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier. 2012-09-21 17:26:35 +03:00
Ezio Melotti e418d76089 #15304: fix wrong warning message in test.support.temp_cwd(). 2012-09-21 16:48:12 +03:00
Ezio Melotti 0847db7c01 #15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka. 2012-09-21 16:30:22 +03:00
Benjamin Peterson f8a9a837c4 remove gdb noise about linux-vdso 2012-09-20 23:48:23 -04:00
Alexander Belopolsky 3ec153681e Issue #15973: Fixed segmentation fault on timezone comparison to other types. 2012-09-20 16:39:33 -04:00
Ezio Melotti c90111f9ab #15970: xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param". 2012-09-19 08:19:12 +03:00
Antoine Pitrou 8a53dbeb7a Issue #15526: try to fix test_startfile's inability to clean up after itself in time.
Patch by Jeremy Kloth.
2012-09-16 00:12:50 +02:00
Antoine Pitrou 1e7ee9dfa0 Issue #15842: the SocketIO.{readable,writable,seekable} methods now raise ValueError when the file-like object is closed.
Patch by Alessandro Moura.
2012-09-14 17:28:10 +02:00
Barry Warsaw 2dceb359cb Update merge from 2.7: s/basetring/str 2012-09-12 14:42:34 -04:00
Barry Warsaw eaae1b76ae A follow up for issue #15906: change the test for calling the type conversion
on the action's default, reverting it back to previous behavior.  Conversion
is only done on string defaults.

Add a test for this and another test that ensures such type conversions are
only called once.
2012-09-12 14:34:50 -04:00
Barry Warsaw 4b2f9e914d - Issue #15906: Fix a regression in argparse caused by the preceding change,
when action='append', type='str' and default=[].
2012-09-11 22:38:47 -04:00
Jesus Cea c8754a13e6 Closes #15793: Stack corruption in ssl.RAND_egd() 2012-09-11 02:00:58 +02:00
Jesus Cea 1f2799bef4 #15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete 2012-09-10 22:49:50 +02:00
R David Murray 5abd76a75d #14649: clarify DocTestSuite error when there are no docstrings.
Also adds tests to verify the documented behavior (which is probably a bug, as
indicated in the added comments).

Patch by Chris Jerdonek.
2012-09-10 10:15:58 -04:00
doko@ubuntu.com 01beb69c7d backport from the trunk, to fix test_tools with srcdir != builddir
changeset:   77827:c23b442b5d5e
	user:        Antoine Pitrou <solipsis@pitrou.net>
	date:        Thu Jun 28 01:20:26 2012 +0200
	summary:     Avoid using scrdir, it's broken.

	changeset:   77826:f0e58e778215
	user:        Neil Schemenauer <nas@arctrix.com>
	date:        Wed Jun 27 15:58:37 2012 -0600
	summary:     Fix bug in test_tools that prevented building is separate directory.
2012-09-10 14:19:42 +02:00
Jesus Cea 941bfcc537 Closes #15676: mmap: add empty file check prior to offset check 2012-09-10 00:27:55 +02:00
Alexander Belopolsky 5bedef3e64 Issue #15881: Fixed 3.2 backport. 2012-09-09 13:31:08 -04:00
Alexander Belopolsky 36351564a2 Fixed whitespace 2012-09-09 13:22:45 -04:00
Alexander Belopolsky 59fb38b582 Issue #15881: Fixed atexit hook in multiprocessing. 2012-09-09 13:16:15 -04:00
Ned Deily 47bcfff26b Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 18:50:56 -07:00
R David Murray 1585b70813 #15510: clarify textwrap's handling of whitespace, and add confirming tests.
Patch by Chris Jerdonek.
2012-09-08 13:13:25 -04:00
R David Murray b522828d2a #15847: allow args to be a tuple in parse_args
This fixes a regression introduced by the fix for issue #13922.  Although args
is not documented as being allowed to be a tuple, previously this worked and
so naturally there are programs in the field that depend on it.

Patch by Zbyszek Jędrzejewski-Szmek.
2012-09-08 12:08:01 -04:00
Antoine Pitrou 56cd62c04a Issue #13992: The trashcan mechanism is now thread-safe. This eliminates
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.

Because of this change, a couple extension modules compiled for 3.2.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 3.2.3 and earlier. However, extension modules
compiled for 3.2.3 and earlier will be loadable by 3.2.4.
2012-09-06 00:59:49 +02:00
Antoine Pitrou 1d857453b7 Issue #15841: The readable(), writable() and seekable() methods of BytesIO
and StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
R David Murray 94dd7cb0c7 #15509: If %action substitution produces a null string, drop it.
Patch by Anton Barkovsky, comment addition by me.

This showed up as a bug in 3.3 because the definition for Chrome
produced such an empty string.  This fix is tested in 3.3+;
backporting the new test suite is more trouble than it is worth.
2012-09-03 12:30:12 -04:00
Benjamin Peterson 2e2c903700 prevert ast errors from being normalized before ast_error_finish is called (closes #15846) 2012-09-02 14:23:15 -04:00
Petri Lehtinen 1c371b255f #15802: Fix test logic in TestMaildir.test_create_tmp 2012-09-01 14:22:36 +03:00
R David Murray 6fb8fb17bf #12776,#11839: call argparse type function only once.
Before, the type function was called twice in the case where the default
was specified and the argument was given as well.  This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.

Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 22:45:20 -04:00
Antoine Pitrou ecc4757b79 Issue #15800: fix the closing of input / output files when gzip is used as a script. 2012-08-30 00:29:24 +02:00
Benjamin Peterson 28a6cfaefc use the stricter PyMapping_Check (closes #15801) 2012-08-28 17:55:35 -04:00
Georg Brandl c8076dfa9d Fix wrong way of adding Error information in shutil.copytree. 2012-08-25 10:11:57 +02:00
Mark Dickinson 6f64796c22 Remove overeager test (don't depend on the sign of a nan; cf. issue #14521) 2012-08-24 20:31:33 +01:00
Mark Dickinson 448f57762d Remove incorrect lines (meant for cdecimal) from recently added Decimal tests. 2012-08-24 19:51:00 +01:00
Mark Dickinson e4204bcfb7 Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. 2012-08-24 19:32:13 +01:00
Georg Brandl a61b09f406 Closes #9374: add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name. 2012-08-24 18:15:29 +02:00
R David Murray 638d40b433 #15249: Mangle From lines correctly when body contains invalid bytes.
Fix by Colin Su.  Test by me, based on a test written by Petri Lehtinen.
2012-08-24 11:14:13 -04:00
Trent Nelson ee253ebf62 Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
2012-08-21 23:41:43 +00:00
Ezio Melotti 1b47bf43a6 #15752: s/assertRaisesRegexp/assertRaisesRegex/g 2012-08-21 11:38:41 +03:00
Stefan Krah 7cacd2eb92 Issue #15736: Fix overflow in _PySequence_BytesToCharpArray(). 2012-08-21 08:16:09 +02:00
Trent Nelson 514dbb03ba Issue #15285: Refactor connect timeout test in test_timeout. 2012-08-20 21:22:59 -04:00
Petri Lehtinen c6fdafcdf3 #15199: Fix JavaScript's default MIME type to application/javascript 2012-08-20 21:28:58 +03:00
Stefan Krah db579d7b25 Issue #15738: Fix a missing NULL check in subprocess_fork_exec(). 2012-08-20 14:36:47 +02:00
Stefan Krah fd24f9e51e Issue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray().
Found by Coverity.
2012-08-20 11:04:24 +02:00
R David Murray e56bf97ef4 #13579: teach string.Formatter about 'a'.
Patch by Francisco Martín Brugué.
2012-08-19 17:26:34 -04:00
Andrew Svetlov 828607170d Issue #15595: Fix subprocess.Popen(universal_newlines=True)
for certain locales (utf-16 and utf-32 family).

Patch by Chris Jerdonek.
2012-08-19 22:13:41 +03:00
Antoine Pitrou b47ea9a6fe Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.
2012-08-18 20:46:23 +02:00
Mark Dickinson 05d79e9abf Issue #15477: Add workaround for log1p(-0.0) on platforms where it's broken. 2012-08-18 12:24:30 +01:00
Petri Lehtinen 88614948c0 #11062: Fix universal newline support in Babyl._install_message()
When adding a message from a binary file, \r\n was translated to
\r\r\n in the message body.
2012-08-16 07:27:01 +03:00
Petri Lehtinen 3d12c4317c #11062: Fix adding a message from file to Babyl mailbox 2012-08-15 14:26:27 +03:00
R David Murray 2b209cd78d #15269: document dircmp.left and right, and add tests for them.
Patch by Chris Jerdonek.
2012-08-14 21:40:13 -04:00
Andrew Svetlov f3765071eb Add test to explicit check the absence regression in subprocess (issue #15592).
Patch by Chris Jerdonek.
2012-08-14 18:35:17 +03:00
Richard Oudkerk e88a2445bc Issue #15646: Prevent equivalent of a fork bomb when using multiprocessing
on Windows without the "if __name__ == '__main__'" idiom.
2012-08-14 11:41:32 +01:00
Brian Curtin 6f5c5cb75b Fix #15496. Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth 2012-08-13 17:05:57 -05:00
Georg Brandl 7b250a5cff Revert 961a15aff2a6, this is already checked in another way. 2012-08-11 11:02:14 +02:00
Georg Brandl 22bfa37ed0 Closes #15620: check for presence of readline.clear_history(), which is apparently missing on some readline versions, before calling it in the test. 2012-08-11 10:59:23 +02:00
Meador Inge 03b4d5072a Issue #15424: Add a __sizeof__ implementation for array objects.
Patch by Ludwig Hähne.
2012-08-10 22:35:45 -05:00
Ned Deily c622f4254b Issue #14992: Prevent test_os test_exist_ok_s_isgid_directory test case
failure on OS X built with 10.4 ABI.
2012-08-08 20:57:24 -07:00
Antoine Pitrou e768c39890 Fix CGI tests to take into account the platform's line ending (issue #13119) 2012-08-05 14:52:45 +02:00
Antoine Pitrou ec2d26930c Fix universal newlines test to avoid the newline translation done by sys.stdout. 2012-08-05 00:23:40 +02:00
Antoine Pitrou 894375a2fd Fix test_sys under Windows (issue #13119) 2012-08-05 00:15:06 +02:00
Andrew Svetlov 5ad514d281 Issue #13052: Fix IDLE crashing when replace string in Search/Replace dialog ended with '\'.
Patch by Roger Serwy.
2012-08-04 21:38:22 +03:00
Victor Stinner 90ef747e04 Close #13119: use "\r\n" newline for sys.stdout/err on Windows
sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2.
2012-08-04 01:37:32 +02:00
Jesus Cea 676e73b3fb #15512: Remove remnants of debugging code 2012-08-03 15:49:14 +02:00
Jesus Cea 16e2fca47e Closes #15469: Correct __sizeof__ support for deque 2012-08-03 14:49:42 +02:00
Jesus Cea e9c5318967 Closes #15512: Correct __sizeof__ support for parser 2012-08-03 14:28:37 +02:00
Martin v. Löwis 4c1730db7c Issue #8847: Disable COMDAT folding in Windows PGO builds.
Analysis by Victor Stinner. Patch by Stefan Krah.
2012-08-01 10:32:11 +02:00
Andrew Svetlov 06c5c6d694 Issue #9803: Don't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
2012-07-31 19:48:00 +03:00
Andrew Svetlov 1fb0e3f3a2 Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog. 2012-07-30 19:59:53 +03:00
Ned Deily c556c64405 Issue #14018: Update the OS X IDLE Tcl/Tk warning check to include
the Apple-supplied Tck/Tk versions shipped with OS X 10.7 and 10.8.
They are not as buggy as the 10.6 version but can still easily crash.
2012-07-30 03:31:21 -07:00
Antoine Pitrou 8f328d0c1d Issue #15489: Add a __sizeof__ implementation for BytesIO objects.
Patch by Serhiy Storchaka.
2012-07-30 00:01:06 +02:00
Antoine Pitrou 10f0c50a0b Issue #15487: Add a __sizeof__ implementation for buffered I/O objects.
Patch by Serhiy Storchaka.
2012-07-29 19:02:46 +02:00
Martin v. Löwis 33f799725c Issue #15467: Move helpers for __sizeof__ tests into test_support.
Patch by Serhiy Storchaka.
2012-07-29 16:33:05 +02:00
Meador Inge 90bc2dbcce Issue #15402: Simplify Struct.__sizeof__ and make tests more precise. 2012-07-28 22:16:39 -05:00
Richard Oudkerk 4887b1c0e7 Issue #6056: Make multiprocessing use setblocking(True) on the sockets it uses.
Original patch by J Derek Wilson.
2012-07-27 14:06:11 +01:00
Antoine Pitrou 09f2e6f902 Issue #15320: Make iterating the list of tests thread-safe when running tests in multiprocess mode.
Patch by Chris Jerdonek.
2012-07-26 00:45:19 +02:00
Martin v. Löwis 30d5e6c13f Issue #7163: Propagate return value of sys.stdout.write.
Patch by Roger Serwy.
2012-07-25 11:32:26 +02:00
Martin v. Löwis c882b7c51a Issue #15318: Prevent writing to sys.stdin.
Patch by Roger Serwy and myself.
2012-07-25 10:47:20 +02:00
Jesus Cea 189fdf187b Better test for Issue #15402: Add a __sizeof__ method to struct.Struct 2012-07-23 18:15:33 +02:00
Meador Inge b14d8c9bcf Issue #15402: Add a __sizeof__ method to struct.Struct.
Initial patch by Serhiy Storchaka.
2012-07-23 10:01:29 -05:00
R David Murray 6a31bc6d81 #15232: correctly mangle From lines in MIME preamble and epilogue 2012-07-22 21:47:53 -04:00
Gregory P. Smith 76c28f7ce2 Consistently raise a TypeError when a non str is passed to hashlib.new
regardless of which of the two implementations of new is used.
2012-07-21 21:19:53 -07:00
R David Murray 00528e8fec #13922: argparse no longer incorrectly strips '--' after the first one.
Patch by Jeff Knupp.
2012-07-21 22:48:35 -04:00
R David Murray b94082a71b #12353: argparse now correctly handles null argument values.
Patch by Torsten Landschoff.
2012-07-21 22:20:11 -04:00
R David Murray 15cd9a0be4 #14391: clarify docstring discussion of Action's 'type' argument's value. 2012-07-21 17:04:25 -04:00
R David Murray e3de175a5e #15342: Add clarifying sentence to posixpath.join docstring.
This sentence appears as a clarifying note in the HTML docs, and seems
worth having in the docstring since it covers a very common use case
that isn't otherwise obvious.  Thanks to Yongzhi Pan for the suggestion.
2012-07-21 14:33:56 -04:00
Florent Xicluna 6e571d699f Fix test_pprint random dict ordering. 2012-07-21 12:44:20 +02:00
Florent Xicluna d6da90f93d Issues #10017 and #14998: Fix TypeError using pprint on dictionaries with unorderable key. 2012-07-21 11:17:38 +02:00
Antoine Pitrou b4bbee25b1 Issue #14579: Fix CVE-2012-2135: vulnerability in the utf-16 decoder after error handling.
Patch by Serhiy Storchaka.
2012-07-21 00:45:14 +02:00
Meador Inge ca9652ea5d Issue #15406: Fix deprecation warning in ctypes test_bitfields.py
Patch by Flávio Ribeiro.
2012-07-20 12:48:34 -05:00
Meador Inge 60c2266afe Issue #6493: Fix handling of c_uint32 bitfields with width of 32 on Windows. 2012-07-19 00:01:22 -05:00
Hynek Schlawack 0b350c6b3e Use posixpath.join() explicitely in posixpath.join() test
Used os.path.join before which has different semantics on Windows.
2012-07-17 14:28:44 +02:00
Hynek Schlawack c5a4566922 #15377: Make posixpath.join() more strict when checking for str/bytes mix
Based on a patch by Nick Coghlan.
2012-07-17 13:05:43 +02:00
Nick Coghlan eb3e62f1c8 Issue #15230: Attempt to make the OS X buildbots happy by resolving the tmp dir symlink in the test suite 2012-07-17 20:42:39 +10:00
Hynek Schlawack 7cdc2bdd0d Fix context manager use in posixpath.join() tests
The asserts were useless (and buggy).
2012-07-17 10:48:19 +02:00
Gregory P. Smith 954d46b2cc one more test fix for systems without select.poll. tested by deleting
select.poll before running.  works both ways (finally).  this should fix
the windows build.
2012-07-16 15:48:30 -07:00
Gregory P. Smith ac14aa5187 Fix unchecked select.poll reference in setUp and tearDown for
platforms that don't have it.
2012-07-16 13:38:45 -07:00
Gregory P. Smith 5bcd005a0b Fix the with_poll tests for platforms without poll. missing import. 2012-07-16 13:34:50 -07:00
Gregory P. Smith dad5711677 Fixes Issue #14635: telnetlib will use poll() rather than select() when possible
to avoid failing due to the select() file descriptor limit.
2012-07-15 23:42:26 -07:00
Hynek Schlawack 4774946c3b #15180: Clarify posixpath.join() error message when mixing str & bytes 2012-07-15 16:21:30 +02:00
Nick Coghlan 761bb11374 Close #15230: runpy.run_path now sets __package__ correctly. Also refactored the runpy tests to use a more systematic approach 2012-07-14 23:59:22 +10:00
Antoine Pitrou 2bb3021837 Try other approach to fix issue #15334. 2012-07-13 22:46:41 +02:00
Antoine Pitrou f0b1baf362 Issue #15334: skip test_dynamic_key when run in non-interactive mode.
Patch by Jeremy Kloth.
2012-07-13 21:08:41 +02:00
Antoine Pitrou 68f4247b65 Issue #15338: skip test_UNC_path when the current user doesn't have enough permissions to access the path. 2012-07-13 20:54:42 +02:00
Antoine Pitrou 282083d5f4 Issue #15300: Ensure the temporary test working directories are in the same parent folder when running tests in multiprocess mode from a Python build.
Patch by Chris Jerdonek.
2012-07-11 19:19:14 +02:00
Martin v. Löwis 67097fd592 Use _RPCFile.write properly. 2012-07-11 09:17:15 +02:00
Martin v. Löwis c27616580d Don't use TextIOBase implementations in _RPCFile. 2012-07-11 08:48:34 +02:00
Martin v. Löwis 8a75bed317 Issue #15319: Revert wrapping of sys.stdin. Patch by Serhiy Storchaka. 2012-07-11 08:29:03 +02:00
Antoine Pitrou 59b9a7bc61 Backport test for nested namespace packages. 2012-07-09 21:23:58 +02:00
Martin v. Löwis 1d0f6dd7db normalize whitespace 2012-07-09 20:52:40 +02:00
Martin v. Löwis 9ae3f7a189 Issue #13532: Check that arguments to sys.stdout.write are strings. 2012-07-09 20:46:11 +02:00
Terry Jan Reedy 44dea9d03f Issue 12510: Delete actual first param name for all methods; revise tests. 2012-07-09 00:13:21 -04:00
Senthil Kumaran 168456df11 revert the changes done for issue14826 - quoting witin Request is not desirable. 2012-07-08 17:47:25 -07:00
Senthil Kumaran 45ce4dc73e issue 14826 - Address the buildbot failure ( explanation msg164973) 2012-07-08 02:08:48 -07:00
Senthil Kumaran b7451cecad Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
Patch contributed by Stephen Thorne.
2012-07-07 17:11:44 -07:00
Florent Xicluna 11f0b41e9d Issue #14990: tokenize: correctly fail with SyntaxError on invalid encoding declaration. 2012-07-07 12:13:35 +02:00
Antoine Pitrou 9235b254dc Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. 2012-07-06 18:48:24 +02:00
Senthil Kumaran f01a337950 Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp 2012-07-04 19:28:16 -07:00
Antoine Pitrou c399185fcc Issue #9239: add tests for modifying zipfile comments in append mode. 2012-06-30 17:31:37 +02:00
Senthil Kumaran eda29f4718 urllib.parse cleanup. rename keywords used as variables 2012-06-29 11:08:20 -07:00
Antoine Pitrou b8b6a68baa Better diagnose test failure 2012-06-29 19:40:35 +02:00
Petri Lehtinen 5b5619f717 #5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush() 2012-06-29 15:10:41 +03:00
Petri Lehtinen b6ee3d6b7a #9559: Don't call _pre_mailbox_hook more than once 2012-06-29 13:50:21 +03:00