Commit Graph

44765 Commits

Author SHA1 Message Date
Andrew M. Kuchling b3437c9f95 Minor grammar re-wording 2010-04-30 13:46:55 +00:00
Tarek Ziadé a5cd18275e Fixed #8577. distutils.sysconfig.get_python_inc() now differenciates buildir and srcdir 2010-04-30 12:15:12 +00:00
Ronald Oussoren 01d149fc1f Fix for issue #3646: with this patch it is possible to do a
framework install of Python in your home directory (on OSX):

   $ configure --enable-framework=${HOME}/Library/Frameworks
   $ make && make install

Without this patch the framework would get installed just fine,
but 'make install' would try to install the application bundles
and command-line tools outside the user's home, which doesn't work
for non-admin users (and is bad form anyway).
2010-04-30 11:20:14 +00:00
Andrew M. Kuchling c121f130b5 Add various items; rearrange unittest section a bit 2010-04-30 01:33:40 +00:00
Andrew M. Kuchling 603831825b Markup fix; clarify by adding 'in that order' 2010-04-30 01:32:47 +00:00
Andrew M. Kuchling 545336673e Fix typos 2010-04-30 01:02:15 +00:00
Andrew M. Kuchling 3ded421fd5 Reword paragraph to make its meaning clearer.
Antoine Pitrou: is my version of the paragraph still correct?

R. David Murray: is this more understandable than the previous version?
2010-04-30 00:52:31 +00:00
Andrew M. Kuchling ba88b7f23b Always add space after RFC; reword paragraph 2010-04-30 00:49:09 +00:00
Giampaolo Rodolà a01f6892d6 Fixes issue 8543 (asynchat documentation issues) 2010-04-29 20:31:17 +00:00
Senthil Kumaran f62b50f306 Fixing the Broken links of mechanize library. 2010-04-29 19:46:08 +00:00
Ezio Melotti ab9149dc8a Group the Windows entries in getfilesystemencoding doc, move the win 9x one at the bottom of the list and fix some markup. 2010-04-29 16:07:20 +00:00
Lars Gustäbel 5c4c4619b0 Issue #8464: tarfile.open(name, mode="w|") no longer creates
files with execute permissions set.
2010-04-29 15:23:38 +00:00
Antoine Pitrou f56a288b1e Issue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versions
of the Linux kernel.  Patch by Yaniv Aknin.
2010-04-29 10:05:40 +00:00
Benjamin Peterson b17b3c51e2 update pypy url 2010-04-29 03:30:59 +00:00
Benjamin Peterson fa0e7796dd update pypy description 2010-04-29 03:18:05 +00:00
Andrew M. Kuchling b2454b2ead Add various unittest items 2010-04-29 01:45:41 +00:00
Andrew M. Kuchling fb759a25f2 Fix doubled 'the'.
Markup fixes to use :exc:, :option: in a few places.
  (Glitch: unittest.main's -c ends up a link to the Python
  interpreter's -c option.  Should we skip using :option: for that
  switch, or disable the auto-linking somehow?)
2010-04-29 01:44:30 +00:00
Andrew M. Kuchling 15c82d2151 Add various items 2010-04-29 00:22:16 +00:00
Antoine Pitrou 3945c867d6 Fix style issues in test_ssl 2010-04-28 21:11:01 +00:00
Antoine Pitrou 689405ee14 Clarify and fix the documentation for IOBase.close() 2010-04-28 19:57:33 +00:00
Antoine Pitrou ece349e517 State clearly that truncate() doesn't move the file position,
and remove a duplicate of its specification.
2010-04-28 19:53:35 +00:00
Senthil Kumaran ed9204346e Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked" 2010-04-28 17:20:43 +00:00
Nick Coghlan ad709ee06b Add version changed note for -m tinkering with sys.argv[0] during the search process 2010-04-28 14:53:59 +00:00
Nick Coghlan c5e4485248 Issue 8202: when using the -m command line switch, sys.argv[0] is now '-m' instead of '-c' while searching for the module to be executed 2010-04-28 14:51:08 +00:00
Nick Coghlan 54677da895 Also mention patch submitter's name in NEWS, not just in the commit message 2010-04-28 14:34:30 +00:00
Nick Coghlan dfb45dfd04 Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing the exception under test (original patch by Lennart Regebro) 2010-04-28 14:29:06 +00:00
Jesus Cea 616de77779 Issue #3928: Support 'os.mknod()' in Solaris 2010-04-28 10:32:30 +00:00
Victor Stinner 6a10281d33 Issue #7449, last part (11): fix many tests if thread support is disabled
* Use try/except ImportError or test_support.import_module() to import thread
   and threading modules
 * Add @unittest.skipUnless(threading, ...) to testcases using threads
2010-04-27 23:55:59 +00:00
Victor Stinner c73a05f775 Issue #7449, part 10: test_cmd imports trace module using test_support.import_module()
Use test_support.import_module() instead of import to raise a SkipTest
exception if the import fail. Import trace fails if the threading module is
missing.

See also part 3: test_doctest: import trace module in test_coverage().
2010-04-27 23:51:16 +00:00
Victor Stinner 47c884129d Partial revert of r80556 (Issue #7449, part 5, fix ctypes test)
Rewrite r80556: the thread test have to be executed just after the test on
libc_open() and so the test cannot be splitted in two functions (without
duplicating code, and I don't want to duplicate code).
2010-04-27 23:33:58 +00:00
Victor Stinner a44b5a3326 Issue #7449, part 9: fix test_xmlrpclib for missing threading module
* Skip testcases using threads if threading module is missing
 * Use "http://" instead of URL in ServerProxyTestCase if threading is missing
   because URL is not set in this case
2010-04-27 23:14:58 +00:00
Victor Stinner 09227b9111 Issue #7449, part 8: don't skip the whole test_asynchat if threading is missing
TestFifo can be executed without the threading module
2010-04-27 23:03:16 +00:00
Victor Stinner be595d336c Issue #7449, part 7: simplify threading detection in test_capi
* Skip TestPendingCalls if threading module is missing
 * Test if threading module is present or not, instead of test the presence of
   _testcapi._test_thread_state
2010-04-27 23:01:29 +00:00
Victor Stinner fd8ea99275 Issue #7449, part 6: fix test_hashlib for missing threading module
Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing().
2010-04-27 22:59:35 +00:00
Benjamin Peterson eef5c35c14 make slice notation in (r)find docs consistent 2010-04-27 22:56:31 +00:00
Antoine Pitrou 4c7bcf1194 Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline
before the certificate footer.  Patch by Kyle VanderBeek.
2010-04-27 22:03:37 +00:00
Victor Stinner 9751472001 Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py
* Split Test.test_open() in 2 functions: test_open() and test_thread_open()
 * Skip test_open() and test_thread_open() if we are unable to find the C
   library
 * Skip test_thread_open() if thread support is disabled
 * Use unittest.skipUnless(os.name == "nt", ...) on test_GetLastError()
2010-04-27 22:01:24 +00:00
Victor Stinner 613b4cf283 Issue #7449, part 4: skip test_multiprocessing if thread support is disabled
import threading after _multiprocessing to raise a more revelant error message:
"No module named _multiprocessing". _multiprocessing is not compiled without
thread support.
2010-04-27 21:56:26 +00:00
Victor Stinner edb9f873cf Issue #7449 part 3, test_doctest: import trace module in test_coverage()
Import trace module fail if the threading module is missing. test_coverage() is
only used if test_doctest.py is used with the -c option. This commit allows to
execute the test suite without thread support.

Move "import trace" in test_coverage() and use
test_support.import_module('trace').
2010-04-27 21:51:26 +00:00
Victor Stinner 1b4a69d79b Issue #7449, part 2: regrtest.py -j option requires thread support 2010-04-27 21:47:01 +00:00
Victor Stinner d9d147b806 Issue #7449, part 1: fix test_support.py for Python compiled without thread 2010-04-27 21:46:03 +00:00
Benjamin Peterson ae9f8bd2f9 correct signature 2010-04-27 21:19:06 +00:00
Benjamin Peterson 27737259b4 condense import 2010-04-27 21:18:30 +00:00
Benjamin Peterson fed4abcc84 fold __future__ imports 2010-04-27 21:17:22 +00:00
Benjamin Peterson 5e9cc5efed fix comment 2010-04-27 21:15:28 +00:00
Benjamin Peterson a9bd6d5ea7 reject None as the buffering argument like the C implementation does #8546 2010-04-27 21:01:54 +00:00
Antoine Pitrou 1dc6b08f9e Issue #8549: Fix compiling the _ssl extension under AIX. Patch by
Sridhar Ratnakumar.
2010-04-27 19:09:59 +00:00
Antoine Pitrou 9bf5425f5f socket.error can really happen here, and fix a possible NameError 2010-04-27 13:13:26 +00:00
Antoine Pitrou db187847fb Qualify or remove or bare excepts. Simplify exception handling in places.
Remove uses of test_support.TestFailed.
2010-04-27 10:32:58 +00:00
Antoine Pitrou 435ba0cfb8 replace custom code with standard library functionality (HTTPServer.shutdown())
+ enable test that was never run (!)
+ make tests faster by lowering polling timeout
2010-04-27 09:51:18 +00:00