Commit Graph

18472 Commits

Author SHA1 Message Date
Éric Araujo df8ef02488 Style change in packaging: use “not in” over “not x in”.
Such tests are IMO easier to read if both operators are grouped.
2011-06-08 04:47:13 +02:00
Éric Araujo 46bdcf7d4b Packaging: always use repr to display project names.
This helps debugging in case of trailing blanks and such things.
2011-06-08 04:40:13 +02:00
Éric Araujo ea888e038b Fix misunderstanding of how booleans work 2011-06-08 04:31:18 +02:00
Éric Araujo 3cab2f150c Packaging cleanup: normalize print calls.
Namely: use default arguments instead of explicit empty string; use multiple
arguments instead of building strings.
2011-06-08 04:10:57 +02:00
Éric Araujo 04fc999c05 Packaging cleanup: remove use of script_name where obsolete 2011-06-08 04:06:50 +02:00
Éric Araujo ef3062f7af Kill dead code in importlib.test.__main__ (#12019, reviewed by Brett Cannon) 2011-06-07 17:58:50 +02:00
Éric Araujo 313570a185 Branch merge: packaging fixes 2011-06-07 17:31:39 +02:00
Łukasz Langa 1752468d39 #12274: use proper escaping for % in IDLE config (merged from 3.2). 2011-06-07 15:20:51 +02:00
Łukasz Langa 41c1910bb3 #12274: use proper escaping for % in IDLE config. 2011-06-07 15:19:44 +02:00
Victor Stinner 3adba1ff81 (Merge 3.2) test.support: don't catch OSError when can_symlink() removes the
temporary symbolic link.
2011-06-07 12:19:34 +02:00
Victor Stinner 62ec61fb6a test.support: can_symlink() removes the temporary symbolic link 2011-06-07 12:17:15 +02:00
Victor Stinner 149b1c7797 Use a sleep for test_subprocess timeout test
instead of an active loop (while True: pass) to limit race conditions.
2011-06-06 23:43:02 +02:00
Éric Araujo 69cdf9294f Fix UnboundLocalError in a finally block of one packaging test 2011-06-06 22:24:19 +02:00
Éric Araujo 7373fccd50 Fix sdist to always include setup.cfg (#11092), to comply with the spec 2011-06-06 21:55:43 +02:00
Éric Araujo 078368fe4d Use strings instead of sets of lines in packaging.create tests.
Using sets in tests did not check whether the values were written in the right
section or with the right key.
2011-06-06 20:59:56 +02:00
Éric Araujo de7563bd3c Fix comment 2011-06-06 20:28:13 +02:00
Éric Araujo 9808dac192 Update comments in sysconfig.cfg 2011-06-06 20:07:04 +02:00
Charles-François Natali 368f34bb4b Issue #12196: Make os.pipe2() flags argument mandatory. 2011-06-06 19:49:47 +02:00
Antoine Pitrou 34b312e33d Whitespace normalization 2011-06-06 19:36:01 +02:00
Antoine Pitrou 176f07dadf Issue #12040: Expose a new attribute `sentinel` on instances of
:class:`multiprocessing.Process`.  Also, fix Process.join() to not use
polling anymore, when given a timeout.
2011-06-06 19:35:31 +02:00
Antoine Pitrou f068ab8304 Issue #11893: Remove obsolete internal wrapper class `SSLFakeFile` in the smtplib module.
Patch by Catalin Iacob.
2011-06-06 19:17:09 +02:00
Éric Araujo e77535c90b Branch merge 2011-06-06 17:12:29 +02:00
Éric Araujo 5b52f95797 Branch merge 2011-06-06 17:11:47 +02:00
Victor Stinner 883456833c Issue #12250: regrtest --timeout displays a warning instead of failing with an
error if faulthandler.dump_tracebacks_later() is missing (e.g. if Python is
compiled without threads).
2011-06-06 12:14:23 +02:00
Victor Stinner 9e586c2b35 Issue #12250: modify "make buildbottest" command line instead of TESTOPTS
Add TESTTIMEOUT variable (default: 3600 seconds). Use TESTTIMEOUT=0 to disable
the timeout.
***
fix
2011-06-06 12:04:36 +02:00
Benjamin Peterson b204a42383 greatly improve argument parsing error messages (closes #12265) 2011-06-05 22:04:07 -05:00
Éric Araujo d5d831b74d Update doctring now that Python has real booleans 2011-06-06 01:13:48 +02:00
Vinay Sajip 5056c8c718 Closes issue #11557: removal of non-idiomatic code in test_logging. 2011-06-05 09:31:34 +01:00
Benjamin Peterson e13e662244 merge heads 2011-06-04 22:09:08 -05:00
Benjamin Peterson f719957d7a only clear the parser error if it's set (closes #12264) 2011-06-04 22:06:42 -05:00
Éric Araujo 4559383664 Improve consistency in questions asked by packaging.create.
I reworded “wizard” because it is a Windows-specific term.
2011-06-04 22:37:57 +02:00
Éric Araujo 8f66f61e55 Clean up packaging.create and add TODO notes for future cleanups 2011-06-04 22:36:40 +02:00
Éric Araujo 18efecf30a Make help messages in packaging.run more consistent 2011-06-04 22:33:59 +02:00
Éric Araujo 2ef747cb77 Cleanup in packaging: don’t unnecessarily instantiate exceptions 2011-06-04 22:33:16 +02:00
Éric Araujo 35a4d01a92 Improve a few docstrings in packaging.
Also beautify import lists.  Having them grouped by lenght makes it slightly
easier to look for a module.
2011-06-04 22:24:59 +02:00
Éric Araujo 459b452b98 Merge ABC and distutils touch-ups from 3.2.
I have removed the reST target I added in 38cdca2cc253: it is not necessary, as
people can link to the glossary entry or the abc module without it.

Two indentation fixes from 3.2 collections.rst have been ported to 3.3
collections.abc.rst.
2011-06-04 21:16:42 +02:00
Éric Araujo 70798be6f6 Remove unneeded executable bit on two distutils files 2011-06-04 20:47:26 +02:00
Éric Araujo b4ef8f299f Branch merge 2011-06-04 20:37:16 +02:00
Mark Dickinson 7ce0fa8775 Issue #12080: Fix a performance issue in Decimal._power_exact that causes some corner-case Decimal.__pow__ calls to take an unreasonably long time. 2011-06-04 18:14:23 +01:00
Éric Araujo 088025fc5b Use list constructor or built-in method instead of copy module 2011-06-04 18:45:40 +02:00
Victor Stinner ab5fcc00a7 (Merge 3.2) Issue #12016: Add test_errorhandle() to TestBase_Mapping of
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:45:03 +02:00
Victor Stinner f5048a4075 Issue #12016: Add test_errorhandle() to TestBase_Mapping of
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:44:39 +02:00
Éric Araujo 5d5bde1df2 Document autoflushing in packaging.test.support.LoggingCatcher.get_logs.
I’m afraid my docstring is not as clear as it should be, but I can’t
find a concise way of describing what the code does.  Suggestions for
improvements welcome.
2011-06-03 17:28:23 +02:00
Charles-François Natali 3ca4db881f Merge. 2011-06-03 12:57:49 +02:00
Charles-François Natali 239bb96540 Issue #12196: Make test.support's requires_linux_version a decorator. 2011-06-03 12:55:15 +02:00
Victor Stinner 301968874b Close #12250: Disable the regrtest timeout by default
Keep a timeout of 1 hour for buildbots.
2011-06-03 12:53:26 +02:00
Raymond Hettinger 22cc1183a3 merge 2011-06-02 23:49:44 -07:00
Raymond Hettinger 3d89057ff8 Fix named tuples to work with vars(). 2011-06-02 23:40:24 -07:00
Éric Araujo acf71b89ff Merge packaging doc fix 2011-06-02 16:43:25 +02:00
Éric Araujo 8c86ecdab5 Fix format of warnings from the packaging check command 2011-06-02 14:54:44 +02:00