Commit graph

18438 commits

Author SHA1 Message Date
É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
É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
Éric Araujo
78af7d8392 Make packaging.tests.support.LoggingCatcher.get_logs flush the log handler.
This removes the need to call flush manually in each test, except when
testing code that creates warning without checking them.
2011-06-02 14:53:59 +02:00
Tarek Ziade
721ccd0ce1 added the generate-setup action 2011-06-02 12:00:44 +02:00
Éric Araujo
98b6592266 Branch merge 2011-06-01 19:47:06 +02:00
Éric Araujo
25987d0c4b The compiler class for EMX was removed 2011-06-01 15:20:44 +02:00
Éric Araujo
25d5737f15 Fix typos in class names 2011-06-01 14:41:11 +02:00
Victor Stinner
301f3f093c test_faulthandler: use a longer sleep (2.5 sec instead of 1.3 sec) in
_check_dump_tracebacks_later() to avoid failures if the system is slow.
2011-06-01 13:49:12 +02:00
Victor Stinner
ebbbdafd87 (Merge 3.2) Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes,
the file descriptor of a pipe closed in the parent process is valid in the
child process according to fstat(), but the mode of the file descriptor is
invalid, and read or write raise an error.

test.support.requires_mac_ver() is now a decorator, as suggested by Ezio
Melotti, and its docstring is fixed (linux_version => mac_ver).
2011-06-01 13:19:07 +02:00
Victor Stinner
88701e27e9 Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file
descriptor of a pipe closed in the parent process is valid in the child process
according to fstat(), but the mode of the file descriptor is invalid, and read
or write raise an error.

Add also requires_mac_ver() decorator to test.support.
2011-06-01 13:13:04 +02:00
Victor Stinner
fce9233e93 test.support: add requires_mac_ver() function
Add also linux_version() to __all__.
2011-06-01 12:28:04 +02:00
Benjamin Peterson
8c6f88efa2 remove __version__s dependent on subversion keyword expansion (closes #12221) 2011-05-31 20:52:17 -05:00
Victor Stinner
1b5b9d7434 (Merge 3.2) Close #12085: Fix an attribute error in subprocess.Popen destructor
if the constructor has failed, e.g. because of an undeclared keyword argument.
Patch written by Oleg Oshmyan.
2011-06-01 00:58:57 +02:00
Victor Stinner
87b9bc3893 Close #12085: Fix an attribute error in subprocess.Popen destructor if the
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 00:57:47 +02:00
Éric Araujo
1256a6864e Re-add line that was mistakenly removed alongside RPM support.
This reveals the need for bdist* tests.
2011-05-31 22:38:41 +02:00
Victor Stinner
2082268025 Issue #8407: test_signal doesn't check signal delivery order
Tthe signal delivery order is not portable or reliable.
2011-05-31 22:31:09 +02:00
Éric Araujo
9deedf696e Re-apply distutils2 changes lost before the merge of packaging.
wrap_text was removed in favor of standard textwrap but the removal of the
function was lost in a bad merge; a change in sdist mysteriously disappeared.
2011-05-31 18:04:32 +02:00
Éric Araujo
a94bdee2e4 Fix nonsensical name.
The code used “long” to refer to a long option (e.g. --quiet), which was
probably changed by 2to3 and not caught by the human operator, and then
changed to “integer” by me to avoid shadowing without seeing the real
obvious fix.
2011-05-31 15:05:38 +02:00
Éric Araujo
b4fefc8fa2 Fix test name in debug message 2011-05-31 14:33:32 +02:00
Tarek Ziade
e2655974cf code cleanup in packaging.run 2011-05-31 12:15:42 +02:00
Tarek Ziade
5a5ce388ed make sure we check for write access before starting the install, and add correct exit code 2011-05-31 12:09:34 +02:00
Nick Coghlan
62ecb6aa0a Tidy up the additional string module tests added at the Pycon sprints (closes #11505) 2011-05-31 19:40:11 +10:00
Tarek Ziade
441531f6e6 improved pysetup list UI 2011-05-31 09:18:24 +02:00
Benjamin Peterson
cccfd9932d merge heads 2011-05-30 19:25:43 -05:00
Benjamin Peterson
15ac311088 add tests for negative with conjugate 2011-05-30 19:22:53 -05:00
Victor Stinner
1eb6d278a8 (Merge 3.2) Issue #12057: Add tests for ISO 2022 codecs
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-31 00:03:07 +02:00
Victor Stinner
ee49797c8d Issue #12057: Add tests for ISO 2022 codecs
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-31 00:01:24 +02:00
Tarek Ziade
f47fa58b62 better UI when the user does not have the perms to remove the project 2011-05-30 23:26:51 +02:00
Victor Stinner
2a12974bca Close #12028: Make threading._get_ident() public, rename it to
threading.get_ident() and document it. This function was used by
_thread.get_ident().
2011-05-30 23:02:52 +02:00
Victor Stinner
d976098e3b Close #12089: Remove outdated and unused code from regrtest. 2011-05-30 22:58:13 +02:00
Victor Stinner
e15dce3d18 Close #12171: IncrementalEncoder.reset() of CJK codecs (multibytecodec) calls
encreset() instead of decreset().
2011-05-30 22:56:00 +02:00
Tarek Ziade
1cc9bbd751 fixed the test_uninstall patch 2011-05-30 19:16:49 +02:00
Tarek Ziade
371df05740 Issue 12218: Removing wsgiref.egg-info 2011-05-30 18:55:32 +02:00
Benjamin Peterson
c6c5e04611 merge heads 2011-05-30 11:15:05 -05:00
Benjamin Peterson
758888d437 don't restrict unexpected EOF errors to the first line (closes #12216) 2011-05-30 11:12:38 -05:00
Benjamin Peterson
c8507bfe9c use better naming scheme 2011-05-30 10:52:48 -05:00