Victor Stinner
3ec32005e8
ooops, fix error message in execusercustomize()
...
Copy/paste failure :-)
2010-03-10 22:45:04 +00:00
Victor Stinner
6664426d7c
Issue #3137 : Don't ignore errors at startup, especially a keyboard interrupt
...
(SIGINT). If an error occurs while importing the site module, the error is
printed and Python exits. Initialize the GIL before importing the site
module.
2010-03-10 22:30:19 +00:00
Florent Xicluna
4d42f2b4d1
#7772 : Fix test_py3kwarn. Now the test suite could pass with "-3" flag.
2010-03-09 19:57:01 +00:00
Raymond Hettinger
e30bc38ce9
Improve code clarity a bit.
2010-03-09 11:29:10 +00:00
Raymond Hettinger
aba2293862
Have links in OrderedDicts be native Python lists instead
...
of a custom class with __slots__. This simplifies the
code a bit, reduces memory consumption, improves speed,
and eliminates the need for weak reference proxies.
2010-03-09 09:58:53 +00:00
Raymond Hettinger
9bd3508530
Add nicer docstrings to namedtuples().
...
Provides better tooltips and looks better in help().
2010-03-09 09:01:46 +00:00
Benjamin Peterson
f4803aa623
set svn:eol-style on various files
2010-03-08 22:15:11 +00:00
Florent Xicluna
47627d5164
#7624 : Fix isinstance(foo(), collections.Callable) for old-style classes.
2010-03-08 15:20:28 +00:00
Florent Xicluna
6f682be82b
Move some tests from test_macpath to test_genericpath.CommonTest
2010-03-08 12:39:35 +00:00
Florent Xicluna
d034b32f57
On finalize, don't try to join not started process.
2010-03-08 11:01:39 +00:00
Florent Xicluna
faf175385d
Replace the stderr logging with assertNotEqual(returncode, 0).
2010-03-08 10:59:33 +00:00
Florent Xicluna
cf741ceb69
Fix syntax: "rc != None" -> "rc is not None"
2010-03-08 10:58:12 +00:00
Florent Xicluna
52584779a6
Don't fail on a debug() statement, if the worker PID is (still) None.
2010-03-08 07:21:16 +00:00
R. David Murray
4617e5085a
Issue #7143 : get_payload used to strip any trailing newline from a
...
base64 transfer-encoded payload *after* decoding it; it no longer does.
email had a special method in utils, _bdecode, specifically to do this,
so it must have served a purpose at some point, yet it is clearly wrong
per RFC. Fixed with Barry's approval, but no backport. Email package
minor version number is bumped, now version 4.0.1.
Patch by Joaquin Cuenca Abela.
2010-03-08 02:04:06 +00:00
Florent Xicluna
16cd888dd9
Backport the Popen.poll() protection from subprocess to multiprocessing. See #1731717 .
...
It should fix transient failures on test_multiprocessing.
2010-03-07 23:49:03 +00:00
Michael Foord
08611b5e55
Remove accidental print statement from last commit.
2010-03-07 23:16:20 +00:00
Michael Foord
a715255a27
Fix accidental name rebinding in unittest py3k warning filtering.
2010-03-07 23:10:36 +00:00
Michael Foord
5ffa325a82
Addition of setUpClass and setUpModule shared fixtures to unittest.
2010-03-07 22:04:55 +00:00
Michael Foord
53e8eeadd6
Fix for potentials errors in constructing unittest failure messages. Plus skipped test methods no longer run setUp and tearDown (Issue 8059)
2010-03-07 20:22:12 +00:00
Florent Xicluna
fc8a1ed70e
Refresh the documentation for the test.test_support module.
2010-03-07 19:14:12 +00:00
Florent Xicluna
400efc2259
#2777 : Try hard to make Win7 buildbot happy...
2010-03-07 17:12:23 +00:00
Mark Dickinson
154b7ad07e
Issue #1530559 : When packing a non-integer with any integer conversion
...
code using struct.pack, attempt to convert to an integer first using
the argument's __int__ method (if present). Also raise a
DeprecationWarning for any such usage of __int__.
This fixes a regression from 2.6, where some (but not all) integer
conversion codes already used __int__.
2010-03-07 16:24:45 +00:00
Florent Xicluna
c083864fc8
Do not fail if returncode is 0 on send_signal/kill/terminate, for win32 platforms.
...
Do not hide the KeyboardInterrupt on POSIX platforms.
2010-03-07 15:27:39 +00:00
Florent Xicluna
c02bbe328d
#2777 : Enable test_send_signal, test_terminate and test_kill on win32 platforms.
2010-03-07 12:21:36 +00:00
Florent Xicluna
6de9e938a5
Issue #7849 : Now the utility ``check_warnings`` verifies if the warnings are
...
effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings.
2010-03-07 12:18:33 +00:00
Florent Xicluna
1f3b4e12e8
Fix some py3k warnings in the standard library.
2010-03-07 12:14:25 +00:00
Senthil Kumaran
4e62949217
Reverting the change made in r78431.
2010-03-07 04:09:30 +00:00
Benjamin Peterson
6b31fd0f13
eliminate py3k warnings in argparse
2010-03-07 00:29:44 +00:00
Benjamin Peterson
8e7c1178a0
bump version to 2.7a4
2010-03-06 20:34:14 +00:00
Florent Xicluna
632df993dc
Skip test_send_signal, test_kill, test_terminate on win32 platforms, for 2.7a4 release.
2010-03-06 19:43:41 +00:00
Florent Xicluna
985478dbbb
Minor tweaking of previous r78734, and add a NEWS entry.
2010-03-06 18:52:52 +00:00
Florent Xicluna
dc1531c5c4
Create test_genericpath.CommonTest and reuse it to test other path modules.
2010-03-06 18:07:18 +00:00
Florent Xicluna
58526417ed
Do not print the header lines when running a single test.
2010-03-06 17:24:36 +00:00
Vinay Sajip
1adbee226e
Added checks for tuples in dictConfig.
2010-03-06 15:56:03 +00:00
Vinay Sajip
d45a278b93
Added schema version test in dictConfig.
2010-03-06 15:12:08 +00:00
Florent Xicluna
12d750d6b8
Backport "test.regrtest -R 2:3" syntax from py3k branch, and other minor adjustments.
2010-03-06 14:38:09 +00:00
Florent Xicluna
0b9a18a42f
#6906 : TCL_LIBRARY and TK_LIBRARY environment variables should be encoded.
2010-03-06 11:01:08 +00:00
Florent Xicluna
aa90db9477
#2777 : Apply same recipe on win32, i.e. do not inherit file handles.
2010-03-06 09:54:14 +00:00
Florent Xicluna
b7c20028fe
Print platform information to stdout, to help troubleshooting platform-specific failures.
2010-03-06 09:11:55 +00:00
Florent Xicluna
0932dc5671
Keep the test files in the ./build/ subdirectory, if Python is not installed.
...
Remove two hacks which are no longer needed after #7712 , because all __file__ attributes are absolute.
2010-03-06 08:07:44 +00:00
Gregory P. Smith
467298cb42
Call setreuid and setregid in a subprocess to avoid altering the test runner's
...
process state. Should fix issue8045.
2010-03-06 07:35:19 +00:00
Tarek Ziadé
c49b6efbca
search in the alternative location for VCExpress
2010-03-06 02:17:28 +00:00
Tarek Ziadé
5501e6a7da
fixed various failures and environment alterations in distutils.test_build_ext
2010-03-06 02:11:14 +00:00
Tarek Ziadé
895ee2419d
files used by win32 tests
2010-03-06 01:27:09 +00:00
Tarek Ziadé
7e48ff8e50
simplified the fallback case
2010-03-06 01:23:21 +00:00
Tarek Ziadé
fbf50b8c7c
provide a fallback for xxmodule.c in case the buildir is not present
2010-03-06 01:18:27 +00:00
Tarek Ziadé
b30868a391
copied back the build_ext tests from 2.6
2010-03-06 01:04:14 +00:00
Florent Xicluna
af9a06a77f
#2777 : Apply same recipe for test_terminate and test_kill, i.e. close or redirect fds.
2010-03-06 00:16:57 +00:00
Vinay Sajip
d77eb9a839
Factored out time usage determination into a method, to facilitate alternative formatting implementations in the future.
2010-03-05 22:11:24 +00:00
Florent Xicluna
cecef392f1
#2777 : Handle fds more carefully to try to fix some x86-Linux failures (namely, neal bot and twisted bot).
2010-03-05 19:31:21 +00:00