Commit Graph

18404 Commits

Author SHA1 Message Date
Barry Warsaw 1e13eb084f - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
environment variable, to provide an opt-in way to protect against denial of
  service attacks due to hash collisions within the dict and set types.  Patch
  by David Malcolm, based on work by Victor Stinner.
2012-02-20 20:42:21 -05:00
Benjamin Peterson 34b345b888 don't rely on the order of module clearing 2012-02-20 15:20:37 -05:00
Barry Warsaw f5a5beb339 Back port Python 2.7 fix for test_invalid_redirect() in test_urllib.py. 2012-02-20 14:43:22 -05:00
Jesus Cea f5f6af81ac Fix Test for issue #13500 2012-02-19 04:20:45 +01:00
Jesus Cea 6e250998b6 Test for issue #13500 2012-02-19 03:54:08 +01:00
Charles-François Natali e062466480 Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.
2012-02-18 14:30:34 +01:00
Charles-François Natali 66f3cc6f8d Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.
2012-02-18 14:15:38 +01:00
Petri Lehtinen 437b149b0c Fix a variable scoping error in an sqlite3 test
Initial patch by Torsten Landschoff.

Closes #11689.
2012-02-17 21:34:45 +02:00
Gregory P. Smith b4b605624d Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF. 2012-02-16 00:40:03 -08:00
Éric Araujo c82da813c1 Fix test failure for shared builds caused by #1326113 fix 2012-02-15 18:13:45 +01:00
Éric Araujo e897a7472d Fix parsing of build_ext --libraries option (#1326113) 2012-02-15 16:28:20 +01:00
Ezio Melotti 65d36dab4d #13987: HTMLParser is now able to handle malformed start tags. 2012-02-15 13:19:10 +02:00
Ezio Melotti d2307cb48a #13987: HTMLParser is now able to handle EOFs in the middle of a construct. 2012-02-15 12:44:23 +02:00
Meador Inge ff337ccd4b Issue #13979: Fix ctypes.util.find_library ldconfig regex 2012-02-13 22:22:06 -06:00
Gregory P. Smith e1dbbbfc51 re.escape os.sep so that \ is interpreted properly in the regex. 2012-02-13 16:45:47 -08:00
Gregory P. Smith d9c2df868f Issue #13930: fix a / to use os.sep so that the test works on Windows. 2012-02-13 16:28:54 -08:00
Nadeem Vawda c48c16ea3a Issue #13193: Fix distutils.filelist tests to always use / as path separator. 2012-02-13 21:33:51 +02:00
Ezio Melotti 369cbd744e Fix an index, add more tests, avoid raising errors for unknown declarations, and clean up comments. 2012-02-13 20:36:55 +02:00
Ezio Melotti f117443cb8 #13993: HTMLParser is now able to handle broken end tags. 2012-02-13 16:28:54 +02:00
Ezio Melotti 4b92cc3f79 #13960: HTMLParser is now able to handle broken comments. 2012-02-13 16:10:44 +02:00
Gregory P. Smith 32b6371460 fix whitespace normalization before pushing. 2012-02-12 15:59:35 -08:00
Gregory P. Smith 12426998ce Issue #13930: Adds ability for 2to3 to write its output to a different
directory tree instead of overwriting the input files.  Adds three command
line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix.

Feature backports into stable release branches for 2to3 are allowed by
a special exemption:
 http://mail.python.org/pipermail/python-dev/2011-December/115089.html
2012-02-12 15:51:21 -08:00
Petri Lehtinen 587209f089 Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes
Closes #9750
2012-02-12 21:03:02 +02:00
Éric Araujo 6faad8de7f Fix distutils.filelist.FileList under Windows (#13193).
The code used to call os.path.join to build a regex but without escaping
the backslash, which lead to test failures on Windows.  Antoine Pitrou
fixed it in 557a973709de by enhancing the code to accept both / and \,
with proper escaping, but in my opinion this goes against the distutils
feature freeze, hence this change.
2012-02-12 04:41:36 +01:00
Ned Deily c47a459251 Issue #13994: Earler partial revert of Distutils enhancements in 2.7
has left two versions of customize_compiler, the original in
distutils.sysconfig and another copy in distutils.ccompiler, with some
parts of distutils calling one and others using the other.
Complete the revert back to only having one in distutils.sysconfig as
is the case in 3.x.
2012-02-11 20:40:24 +01:00
Ned Deily 0d0ea48709 Issue #13590: On OS X 10.7 and 10.6 with Xcode 4.2, building
Distutils-based packages with C extension modules may fail because
Apple has removed gcc-4.2, the version used to build python.org
64-bit/32-bit Pythons.  If the user does not explicitly override
the default C compiler by setting the CC environment variable,
Distutils will now attempt to compile extension modules with clang
if gcc-4.2 is required but not found. Also as a convenience, if
the user does explicitly set CC, substitute its value as the default
compiler in the Distutils LDSHARED configuration variable for OS X.
(Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u
SDK, neither of which are available in Xcode 4.  This change does not
attempt to override settings to support their use with Xcode 4.)
2012-02-10 12:59:06 +01:00
Charles-François Natali ebf691d64c Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
can't be called reliably from a worker thread.
2012-02-08 21:27:56 +01:00
Petri Lehtinen c7fd523ac5 Issue #10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now. 2012-02-06 22:04:00 +02:00
Ned Deily 2c8bf04308 Issue #10881: Fix test_site failures with OS X framework builds. 2012-02-06 00:55:50 +01:00
Terry Jan Reedy adb87e2677 Issue 964437 Make IDLE help window non-modal.
Patch by Guilherme Polo and Roger Serwy.
2012-02-05 15:10:55 -05:00
Terry Jan Reedy d76c1bf599 #13933 refine patch using 'new' builtin 2012-02-05 14:30:43 -05:00
Meador Inge 25e70fd133 Issue #12142: Fixed reference cycle when importing ctypes 2012-02-05 00:27:40 -06:00
Ned Deily 61c9534363 Issue #13933: IDLE auto-complete did not work with some imported
module, like hashlib.  (Patch by Roger Serwy)
2012-02-04 18:35:23 +01:00
Antoine Pitrou 60be6f8e37 Fix failing test on big-endian machines (issue #13806). 2012-02-04 16:44:21 +01:00
Charles-François Natali 709aa35a7a Issue #8184: Fix a potential file descriptor leak when a
multiprocessing.Connection socket can't be bound.
2012-02-04 14:40:25 +01:00
Benjamin Peterson 0013783d2f remove unused import 2012-02-03 19:07:30 -05:00
Ned Deily 22d2711cb6 Issue #13861: Prevent test_apropos* test case failures in test_pydoc. 2012-02-03 23:13:03 +01:00
Ned Deily fbc56fde26 Issue #13901: Prevent test_distutils failures on OS X with --enable-shared. 2012-02-03 02:39:49 +01:00
Charles-François Natali 6dce7d633f Merge. 2012-02-02 20:36:47 +01:00
Petri Lehtinen fe6f9d0edc Document absoluteness of sys.executable
Closes #13402.
2012-02-02 21:26:05 +02:00
Charles-François Natali e0e88b0483 Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix
a random deadlock when fork() is called in a multithreaded process in debug
mode, and make PyOS_AfterFork() more robust.
2012-02-02 19:57:19 +01:00
Stefan Krah da6db4f8b0 Issue #1813: backport changeset that reverts a glibc workaround for the
Fedora buildbot.
2012-02-02 16:57:49 +01:00
Brian Curtin 3c8807bd5e merge. 2012-02-01 15:22:50 -06:00
Brian Curtin b4bef305fd merge from fb225c289bf0 2012-02-01 15:17:39 -06:00
Petri Lehtinen 0518f470b1 sqlite3: Handle strings with embedded zeros correctly
Closes #13676.
2012-02-01 22:20:13 +02:00
Terry Jan Reedy 1d4ae48f48 whitespace3 2012-01-31 02:55:32 -05:00
Terry Jan Reedy b98000ab5b #13506 Add '' to path for interactive interpreter by adding with_cwd parameter
to PyShell.PyShell.transfer_path() and changing elsewhere as needed.
Original patches by Marco Scataglini and Roger Serwy.
2012-01-31 02:09:25 -05:00
Benjamin Peterson caa0f61463 remove tests from really old regex module 2012-01-28 20:33:21 -05:00
Antoine Pitrou 88c51e8cb1 Issue #13806: The size check in audioop decompression functions was too strict and could reject valid compressed data.
Patch by Oleg Plakhotnyuk.
2012-01-28 22:01:59 +01:00
Antoine Pitrou 7a556846d4 Fix intermittent test_ssl failure. 2012-01-27 17:33:01 +01:00
Antoine Pitrou 6f25d75f25 Remove debug output, fix assert (hopefully) and exercise signedness issues a bit more. 2012-01-25 15:38:32 +01:00
Antoine Pitrou 6e16f53855 Skip test failure under OpenIndiana 2012-01-25 02:49:47 +01:00
Antoine Pitrou e3668e9842 Make test work under 32-bit systems, and when invoked through Lib/test/regrtest.py
(rather than `-m test.regrtest`)
2012-01-25 01:35:26 +01:00
Antoine Pitrou d1c818a9c0 Issue #11235: Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp. 2012-01-24 17:44:06 +01:00
Łukasz Langa 30b13eebfe Fixes #4686. Reverts redundant picklability code from r74544. 2012-01-23 17:30:53 +01:00
Senthil Kumaran 58c6062068 Fix Issue6631 - Disallow relative files paths in urllib*.open() 2012-01-21 11:43:02 +08:00
Łukasz Langa 631c258000 Fixes #13760: picklability of ConfigParser exceptions 2012-01-20 17:02:08 +01:00
Vinay Sajip 6d102f18cb Closes #13807: Now checks for sys.stderr being there before writing to it. 2012-01-20 11:20:12 +00:00
Nadeem Vawda d7664dee0c Issue #13781: Fix GzipFile to work with os.fdopen()'d file objects. 2012-01-19 00:40:46 +02:00
Antoine Pitrou e09bc1e8f5 Revert part of 13f56cd8dec1 (issue #1785) to avoid breaking getmembers() with unbound methods.
Python 3 isn't affected (unbound methods don't exist).
Thanks to Vincent Pelletier for noticing.
2012-01-18 17:39:01 +01:00
Jesus Cea a8f75da8f2 Yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 04:43:50 +01:00
Jesus Cea f830aa5455 Emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 04:25:28 +01:00
Jesus Cea 4a8ba19783 Closes #13803: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 03:51:38 +01:00
Antoine Pitrou 3b6a31412f Issue #13589: Fix some serialization primitives in the aifc module.
Patch by Oleg Plakhotnyuk.
2012-01-17 17:13:04 +01:00
Benjamin Peterson 465b58e5ee explain why we need this grammar file (closes #13766) 2012-01-15 21:28:00 -05:00
Terry Jan Reedy 8ef4a70a48 #13039 allow proper deletion of '>>> ' in IDLE editor windows.
Patch by Roger Serwy.
2012-01-15 19:02:50 -05:00
Jason R. Coombs 4a24283272 Adding regression test for issue6727 2012-01-15 11:45:27 -05:00
Benjamin Peterson a8d458560e allow cycles throught the __dict__ slot to be cleared (closes #1469629)
Patch from Armin, test from me.
2012-03-07 18:41:11 -06:00
Éric Araujo ec17afdfda Backout buggy patch for #13719 2012-03-07 21:00:44 +01:00
Vinay Sajip da563bfa48 Closes #14158: We now track test_support.TESTFN cleanup, and test_mailbox uses shutil.rmtree for simpler code. 2012-03-06 20:07:15 +00:00
Éric Araujo 1bf6bb6c37 Fix NameError 2012-03-05 17:00:49 +01:00
Éric Araujo dcd280480f Make distutils’ upload command work with bdist_msi products (#13719).
Patch by Ralf Schmitt.
2012-03-05 16:47:33 +01:00
Éric Araujo 7c16412425 Use raw string for a docstring that uses a backslash 2012-03-05 16:29:30 +01:00
Meador Inge 104f18977f Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive. 2012-03-04 22:02:17 -06:00
Antoine Pitrou 94c2d6df54 Fix some set algebra methods of WeakSet objects. 2012-03-04 20:47:05 +01:00
Antoine Pitrou 859416e980 Fix sporadic failure in test_weakset 2012-03-04 20:20:34 +01:00
Armin Rigo 1cb2e04238 Add a crasher for the documented issue of calling "Py_DECREF(self->xxx)"; 2012-03-04 18:56:23 +01:00
Antoine Pitrou c56bca31e9 Issue #14159: Fix the len() of weak sets to return a better approximation when some objects are dead or dying.
Moreover, the implementation is now O(1) rather than O(n).
Thanks to Yury Selivanov for reporting.
2012-03-01 16:26:35 +01:00
Ezio Melotti ca666245e7 #14089: increase coverage of the fractions module. Patch by Oleg Plakhotnyuk. 2012-02-29 14:04:02 +02:00
Ezio Melotti 38ae5b2392 #10713: Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool. 2012-02-29 11:40:00 +02:00
Nadeem Vawda a6bdfd1fa9 Give better failure messages in test_strptime (cf. issue #14113). 2012-02-29 00:21:40 +02:00
Antoine Pitrou 6a1cd1b3b1 Issue #13521: dict.setdefault() now does only one lookup for the given key, making it "atomic" for many purposes.
Patch by Filip Gruszczyński.
2012-02-27 00:45:12 +01:00
Éric Araujo ae50babe32 Synchronize some distutils tests with 3.2.
- Actually check the contents of the file created by bdist_dumb.
- Don’t use “RECORD” as filename for non-PEP 376 record file
- Don’t start method name with “_test”, it looks like a disabled test
  method instead of an helper method
- Fix some idioms (assertIn, addCleanup)
2012-02-26 01:53:53 +01:00
Éric Araujo 7f4b3be2cc Fix typo “seperator” 2012-02-26 01:41:39 +01:00
Éric Araujo 9ede557d34 Update docstring with more useful text (from the PEP) 2012-02-26 01:37:47 +01:00
Éric Araujo 06efea3392 Use raw strings for docstrings with backslashes in ASCII diagrams 2012-02-26 01:33:22 +01:00
Éric Araujo 8d4d74eefc Update lingering references to ex-parrot. I mean ex-devguide. 2012-02-26 01:28:34 +01:00
Éric Araujo ef2e14e675 Fix instructions on how to rebuild some modules 2012-02-26 01:26:09 +01:00
Éric Araujo d673b62bac Stop ignoring RPMs in distutils' upload command (#2945).
Bug reported by Hartmut Goebel and patch contributed by Carl Robben.
Untested backport of the fix committed and tested for 3.2.
2012-02-26 01:16:47 +01:00
Éric Araujo e84e263a84 Add test file for scripts in Tools (#13447).
When people find bugs in scripts such as reindent.py, msgfmt.py or
pygettext.py, we have to try to reproduce the bug manually, apply a fix
and test manually again.  The alternative is to only read the code and
trust that it works.  This test file is a way to stop that
unsatisfactory state of things and write proper unit tests instead.
2012-02-25 16:24:59 +01:00
Éric Araujo 31378df83a Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884).
These regex changes fix a number of issues for distutils on Windows:
- #6884: impossible to include a file starting with 'build'
- #9691 and #14004: sdist includes too many files
- #13193: test_filelist failures

This commit replaces the incorrect changes done in 557a973709de,
c566a3447ba1 and 3925081a7ca0 to fix #13193; we were too eager to fix
the test failures and I did not study the code enough before
greenlighting patches.  This time we have unit tests from the problems
reported by users to be sure we have the right fix.

Thanks to Nadeem Vawda for his help.
2012-02-25 16:13:53 +01:00
Vinay Sajip 93fa159a43 Merged upstream changes. 2012-02-23 20:55:58 +00:00
Vinay Sajip 501982226a Fix added for recent changes in non-threading environments. 2012-02-23 20:45:03 +00:00
Benjamin Peterson 03d2368748 merge heads 2012-02-23 15:20:08 -05:00
Vinay Sajip 16f6a29be8 Updated comments. 2012-02-23 19:40:33 +00:00
Vinay Sajip d23845e270 logging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf Khan for the suggestion. 2012-02-23 19:37:18 +00:00
Amaury Forgeot d'Arc dee76e627d Issue #13774: json: Fix a SystemError when a bogus encoding is passed to
json.loads().
2012-01-13 22:53:25 +01:00
Antoine Pitrou 9e0839006e Remove unused certificate from the test directory. 2012-01-10 23:45:54 +01:00
Senthil Kumaran bcd833f30f - Issue #13642: Unquote before b64encoding user:password during Basic
Authentication. Patch contributed by Joonas Kuorilehto and Michele Orrù.
2012-01-11 00:09:24 +08:00
Terry Jan Reedy cfe6deb6f7 #11906 Make test_argparse work interactively by removing extra space
in comparison string that argparse does not add when program name is blank.
2012-01-09 18:20:09 -05:00
Benjamin Peterson 5fc58c6321 fix this to not depend on dictionary order 2012-01-03 16:23:11 -06:00
Antoine Pitrou d76088d972 Issue #13636: Weak ciphers are now disabled by default in the ssl module
(except when SSLv2 is explicitly asked for).
2012-01-03 22:46:48 +01:00
Charles-François Natali 3aa59e327c Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch by
Vilmos Nebehaj.
2012-01-02 15:38:27 +01:00
Jason R. Coombs 79e50c659a Limit test scope to those platforms that can save the target filenames. Reference #11638. 2011-12-28 11:42:22 -05:00
Benjamin Peterson c32d5cb9ec propgate error in other conditions 2011-12-27 15:16:34 -06:00
Jason R. Coombs 042370e750 Issue #11638: Adding test to ensure .tar.gz files can be generated by sdist command with unicode metadata, based on David Barnett's patch.
Issue #11638: Added tests to capture failures in make_tarball with various unicode strings.
Following fix for Issue #13639, these tests now pass.
2011-12-26 10:15:15 -05:00
Charles-François Natali b40827d379 Issue #13565: Increase multiprocessing's server socket backlog, to avoid
dropped connections in case of simultaneous connection requests.
2011-12-23 19:05:45 +01:00
Senthil Kumaran 139c457106 port to 2.7 - Minor code style improvements in http.server suggested in Issue13294. 2011-12-23 17:07:13 +08:00
Lars Gustäbel 7d4d074c99 Issue #13639: Accept unicode filenames in tarfile.open(mode="w|gz").
Passing a unicode filename to tarfile.open() along with mode "w|gz" failed
with a UnicodeError because the filename was not encoded properly before being
written to the gzipped stream in the FNAME extra field.
2011-12-21 19:27:50 +01:00
Antoine Pitrou 5b95eb90a7 Use context managers in test_ssl to simplify test writing. 2011-12-21 16:52:40 +01:00
Antoine Pitrou 17c07134a9 Fix test_import failure when run multiple times.
(2.7-only)
2011-12-21 16:01:53 +01:00
Antoine Pitrou b8572a1673 Issue #1785: Fix inspect and pydoc with misbehaving descriptors.
Also fixes issue #13581: `help(type)` wouldn't display anything.
2011-12-21 10:16:14 +01:00
Charles-François Natali 8366b8417b Followup to issue #11867: Use socketpair(), since FreeBSD < 8 doesn't really
support multiprocessing.Event.
2011-12-20 11:47:23 +01:00
Charles-François Natali 3b8180739d Issue #13453: Try to increase some socket timeouts to make some buildbots stop
failing.
2011-12-19 16:11:04 +01:00
Victor Stinner 99cff3f182 Issue #13628: python-gdb.py is now able to retrieve more frames in the Python
traceback if Python is optimized.

 * delay the lookup of the size_t type, it is not available at startup
 * The second argument of the PyFrameObjectPtr constructor is optional, as
   done in other constructors
 * iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns
   an empty tuple instead of None if Python is optimized
 * Fix py-bt to handle correctly "optimized" frames
 * Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx()
   if the pointer is optimized out in PyEval_EvalFrameEx()
2011-12-19 13:59:58 +01:00
Charles-François Natali 52aa260387 Issue #11867: Make test_mailbox.test_lock_conflict deterministic (and fix a
race condition).
2011-12-19 12:17:16 +01:00
Ezio Melotti 6b7003a18c #13576: add tests about the handling of (possibly broken) condcoms. 2011-12-19 07:28:08 +02:00
Antoine Pitrou 6c3f4a8a24 Followup to #7502: add __hash__ method and tests. 2011-12-18 20:20:17 +01:00
Antoine Pitrou 7a3d8aee8c Issue #7502: Fix equality comparison for DocTestCase instances.
Patch by Cédric Krier.
2011-12-18 19:27:45 +01:00
Charles-François Natali 41616300b1 Issue #11870: threading: Properly reinitialize threads internal locks and
condition variables to avoid deadlocks in child processes.
2011-12-18 18:22:24 +01:00
Charles-François Natali f3d35f0efe Issue #8035: urllib: Fix a bug where the client could remain stuck after a
redirection or an error.
2011-12-18 15:52:48 +01:00
Victor Stinner 429a12b7b6 Issue #13545: Fix platform.libc_version() is the SO version is missing 2011-12-15 21:42:03 +01:00
Ned Deily 40ad04171d Issue #4625: If IDLE cannot write to its recent file or breakpoint
files, display a message popup and continue rather than crash.
(original patch by Roger Serwy)
2011-12-14 14:57:43 -08:00
Charles-François Natali 27b154ea57 Issue #13453: Fix a race condition in test_poplib. 2011-12-14 19:28:08 +01:00
Raymond Hettinger f537702732 Issue #13573: The csv.writer now uses the repr() for floats rather than str(). 2011-12-11 22:31:09 -08:00
Benjamin Peterson 8b59c23a54 you can't get resource.error if you can't import resource 2011-12-10 12:31:42 -05:00
Charles-François Natali 97c9428c91 Issue #13453: Catch EAI_FAIL in support.transient_internet. 2011-12-10 13:16:02 +01:00
Jason R. Coombs 77cd258550 Implemented suggested improvements for pdb test by Éric Araujo 2011-12-08 22:14:56 -05:00
Victor Stinner 0de2aaea7f Issue #11886: workaround an OS bug (time zone data) in test_time
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
2011-12-08 00:32:51 +01:00
Ezio Melotti 4988ca5c55 #13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng. 2011-12-08 00:00:49 +02:00
Amaury Forgeot d'Arc 4bf21e28df Issue #13546: Fixed an overflow issue that could crash the intepreter when
calling sys.setrecursionlimit((1<<31)-1).

2.7 only.
2011-12-07 21:46:48 +01:00
Jesus Cea a94b578431 Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop 2011-12-06 20:46:04 +01:00
Lars Gustäbel 9a38863d8c Correctly detect bzip2 compressed streams with blocksizes other than 900k. 2011-12-06 13:07:09 +01:00
Jason R. Coombs 974d863fec Issue #13211: Add .reason attribute to HTTPError to implement parent class (URLError) interface. 2011-11-07 10:44:25 -05:00
Petri Lehtinen 49e49a218c Issue #13439: Fix many errors in turtle docstrings. 2011-12-02 21:22:53 +02:00
Ezio Melotti ab731a3556 #8414: add more tests for "assert". Initial patch by Gregory Nofi. 2011-12-02 18:17:30 +02:00
Charles-François Natali 27bc4d07cc Issue #13415: Skip test_os.test_unset_error on FreeBSD and OS X. 2011-11-27 13:05:14 +01:00
Meador Inge 710671a722 Issue #12618: fix py_compile unit tests to handle different drives on Windows 2011-11-26 11:30:21 -06:00
Meador Inge 89749407af Issue #12618: create unit tests for the py_compile module 2011-11-25 23:28:18 -06:00
Meador Inge 0e30317891 Issue #13380: add an internal function for resetting the ctypes caches 2011-11-25 22:25:06 -06:00
Antoine Pitrou a5d5bb997b Issue #12856: Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
Patch by Brian Harring.
2011-11-25 21:28:15 +01:00
Victor Stinner 091b6ef793 Issue #13436: Fix unsetenv() test on Windows 2011-11-22 22:30:19 +01:00
Victor Stinner 53853c3fa9 Issue #13415: os.unsetenv() doesn't ignore errors anymore. 2011-11-22 22:20:13 +01:00
Charles-François Natali 6392d7f68b Issue #12156: Skip test_multiprocessing on systems which don't support enough
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:35:18 +01:00
Victor Stinner 975134e2a2 Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()
Add tests for PyUnicode_EncodeDecimal()
2011-11-22 01:54:19 +01:00
Antoine Pitrou 5aa7df320f Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:16:44 +01:00
Victor Stinner 9d38b0dcb2 Close #13401: Skip TestFileTypeW of test_argparse if the current user is root
Patch written by Arfrever Frehtes Taifersar Arahesis.
2011-11-20 23:09:09 +01:00
Ezio Melotti 169ed5946a #11112: Fix typo in a base class in test_socket. 2011-11-18 18:33:14 +02:00
Ezio Melotti 00dc60beee #13358: HTMLParser now calls handle_data only once for each CDATA. 2011-11-18 18:00:40 +02:00
Ezio Melotti 93bbb6a9a6 #4147: minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg. 2011-11-18 17:30:28 +02:00