Brian Curtin
f668df5fa7
Fix #10098 . Fix sporadic test_os failures.
...
Amaury noticed that we're not waiting for the subprocess to be ready --
it should be checking for 1, not 0.
2010-10-15 14:21:06 +00:00
Antoine Pitrou
ba8071241b
Revert debug printout
2010-10-15 13:52:53 +00:00
Antoine Pitrou
fe9791365d
Enable debug output at the start of the regression suite instead.
...
Sorry for the ephemeral inconvenience.
2010-10-15 13:47:00 +00:00
Antoine Pitrou
f64317e05f
Temporary debug printout for buildbots
2010-10-15 13:35:51 +00:00
Benjamin Peterson
3e46b25751
remove empty file
2010-10-15 01:07:08 +00:00
Benjamin Peterson
f37eb3a184
Merged revisions 83852-83853,83857,84042,84216,84274-84276,84375,85388,85478,85506-85508 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r83852 | benjamin.peterson | 2010-08-08 15:45:44 -0500 (Sun, 08 Aug 2010) | 1 line
wrap with parens
........
r83853 | benjamin.peterson | 2010-08-08 15:46:31 -0500 (Sun, 08 Aug 2010) | 1 line
use parens
........
r83857 | benjamin.peterson | 2010-08-08 15:59:49 -0500 (Sun, 08 Aug 2010) | 1 line
things which use touch_import should be pre order
........
r84042 | george.boutsioukis | 2010-08-14 16:10:19 -0500 (Sat, 14 Aug 2010) | 2 lines
This revision incorporates into the 2to3 tool the new, faster, tree matching algorithm developed during a GSOC project. The algorithm resides in the two added modules, btm_matcher and btm_utils. New code has been added to drive the new matching process in refactor.py and a few minor changes were made in other modules. A BM_compatible flag(False by default) has been added in fixer_base and it is set to True in most of the current fixers.
........
r84216 | benjamin.peterson | 2010-08-19 16:44:05 -0500 (Thu, 19 Aug 2010) | 1 line
allow star_expr in testlist_gexp
........
r84274 | benjamin.peterson | 2010-08-22 18:40:46 -0500 (Sun, 22 Aug 2010) | 1 line
wrap long line
........
r84275 | benjamin.peterson | 2010-08-22 18:42:22 -0500 (Sun, 22 Aug 2010) | 1 line
cleanup
........
r84276 | benjamin.peterson | 2010-08-22 18:51:01 -0500 (Sun, 22 Aug 2010) | 1 line
when there's a None value and a traceback, don't call type with it #9661
........
r84375 | george.boutsioukis | 2010-08-31 08:38:53 -0500 (Tue, 31 Aug 2010) | 3 lines
Idiomatic code changes & stylistic issues fixed in the BottomMatcher module. Thanks to Benjamin Peterson for taking the time to review the code.
........
r85388 | benjamin.peterson | 2010-10-12 17:27:44 -0500 (Tue, 12 Oct 2010) | 1 line
fix urllib fixer with multiple as imports on a line #10069
........
r85478 | benjamin.peterson | 2010-10-14 08:09:56 -0500 (Thu, 14 Oct 2010) | 1 line
stop abusing docstrings
........
r85506 | benjamin.peterson | 2010-10-14 17:45:19 -0500 (Thu, 14 Oct 2010) | 1 line
kill sibling import
........
r85507 | benjamin.peterson | 2010-10-14 17:54:15 -0500 (Thu, 14 Oct 2010) | 1 line
remove trailing whitespace
........
r85508 | benjamin.peterson | 2010-10-14 17:55:28 -0500 (Thu, 14 Oct 2010) | 1 line
typo
........
2010-10-14 23:00:04 +00:00
Antoine Pitrou
92f60ed82a
More proper closing of files
2010-10-14 22:11:44 +00:00
Benjamin Peterson
73315e9200
revert change that was in wrong branch
2010-10-14 22:00:20 +00:00
Florent Xicluna
35049443dc
Add test case for issue #9409 , non-ascii char in doctest. It passes in 3.2 but needs fixing in 2.7.
2010-10-14 21:35:58 +00:00
Antoine Pitrou
b86680e299
Explicitly close some files (from issue #10093 )
2010-10-14 21:15:17 +00:00
Florent Xicluna
d9f57630fe
Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409 )
2010-10-14 20:56:20 +00:00
Antoine Pitrou
d778e568ba
Increase timeouts in test_ftplib (for very slow buildbots)
2010-10-14 20:35:26 +00:00
Antoine Pitrou
8c8f1ac46c
Oops
2010-10-14 18:32:54 +00:00
Antoine Pitrou
b3a88b5c42
Really fix bug
2010-10-14 18:31:39 +00:00
Barry Warsaw
270800c801
Fix issue 10094, by narrowing down the test for PROXY environment variables.
...
Ubuntu 10.10 introduced $UBUNTU_MENUPROXY into the default user environment,
and that's what's tripping up the code.
2010-10-14 18:10:34 +00:00
Alexander Belopolsky
1bcbaab15a
Issue 9183: Intern UTC timezone.
2010-10-14 17:03:51 +00:00
Antoine Pitrou
5bc4fa7a49
Replace the "compiler" resource with the more generic "cpu", so
...
as to mark CPU-heavy tests.
2010-10-14 15:34:31 +00:00
Antoine Pitrou
b1c5496738
Issue #7523 : Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,
...
where supported by the system. Patch by Nikita Vetoshkin.
2010-10-14 15:05:38 +00:00
Senthil Kumaran
383c32dd38
Issue10063 - file:// scheme will stop accessing remote hosts via ftp protocol
2010-10-14 11:57:35 +00:00
Antoine Pitrou
1b03f2ca83
Inherit interpreter flags in parallel testing
2010-10-14 11:12:00 +00:00
Victor Stinner
89f3ad10d2
test_subprocess doesn't need to C locale to test os.environb
...
Improve also the comment to explain why C locale is needed to test os.environ.
2010-10-14 10:43:31 +00:00
Victor Stinner
ebc78d23ef
test_subprocess: use C locale to get ascii locale encoding
2010-10-14 10:38:17 +00:00
Georg Brandl
f5247e35c1
#9964 : fix running test_cmd_line_script under -O and -OO.
2010-10-14 08:08:56 +00:00
Georg Brandl
1463a3f833
#9964 : fix running test_compileall under -O and -OO.
2010-10-14 07:42:27 +00:00
Georg Brandl
1c2a7b7a69
Better check for "any optimize option given".
2010-10-14 07:34:56 +00:00
Georg Brandl
f99a15c377
#9964 : fix running test_xml_etree under -OO.
2010-10-14 07:32:52 +00:00
Georg Brandl
cbeb9fa617
#9964 : fix lib2to3 fixer fix_operator when running under -OO.
2010-10-14 07:29:08 +00:00
Georg Brandl
fb3c84a8d9
#9964 : fix running test_import under -O or -OO.
2010-10-14 07:24:28 +00:00
Georg Brandl
ebbf63b5b2
#9964 : Fix failure of test_dis under -OO.
2010-10-14 07:23:01 +00:00
Georg Brandl
f93390a61e
Remove unused imports.
2010-10-14 07:17:44 +00:00
Georg Brandl
9e7dbc8a70
#9964 : fix pdb failure to import under -OO. Warn the user that help is simply not available in this case.
2010-10-14 07:14:31 +00:00
Georg Brandl
66c221e993
#9418 : first step of moving private string methods to _string module.
2010-10-14 07:04:07 +00:00
Georg Brandl
268e4d4cf3
#1710703 : write zipfile structures also in the case of closing a new, but empty, archive.
2010-10-14 06:59:45 +00:00
Antoine Pitrou
a62cbf7cce
Fix (hopefully) occasional failures in test_threaded_import.
...
`done` could be released multiple times because of concurrent
execution. We convert it to an Event, where calling set()
multiple times is not a problem.
2010-10-13 23:48:39 +00:00
Victor Stinner
d24fc5d7c4
test_sys: Remove workaround #8611
...
It looks like it is no more needed: Python 3.2 is slowly able to support
non-ascii paths with an ascii locale.
2010-10-13 23:41:57 +00:00
Victor Stinner
8f6b6b0cc3
Issue #9992 : Remove PYTHONFSENCODING environment variable.
2010-10-13 22:02:27 +00:00
Antoine Pitrou
6003ff7633
Protect test_smtpnet against connection failures
2010-10-13 17:14:16 +00:00
Antoine Pitrou
834bd81c51
Issue #10041 : The signature of optional arguments in socket.makefile()
...
didn't match that of io.open(), and they also didn't get forwarded
properly to TextIOWrapper in text mode. Patch by Kai Zhu.
2010-10-13 16:17:14 +00:00
Antoine Pitrou
48e00f3ab6
Use PROTOCOL_SSLv23 in the test HTTPS server, in an attempt to appease the old Gentoo buildbot
2010-10-13 12:06:43 +00:00
Antoine Pitrou
84fa4314ba
Print out socket errors in HTTPS server thread
2010-10-13 11:51:05 +00:00
Antoine Pitrou
05d936d2ce
Let test_ssl fail gracefully if ssl support is not available
2010-10-13 11:38:36 +00:00
Antoine Pitrou
f26f87ef06
Run a simple HTTPS server when Lib/test/ssl_servers.py is run as __main__
2010-10-13 11:27:09 +00:00
Antoine Pitrou
8060399654
Typo. It is rather obvious that this code isn't tested :/
2010-10-13 10:45:16 +00:00
Antoine Pitrou
803e6d670c
Issue #9003 : http.client.HTTPSConnection, urllib.request.HTTPSHandler and
...
urllib.request.urlopen now take optional arguments to allow for
server certificate checking, as recommended in public uses of HTTPS.
2010-10-13 10:36:15 +00:00
Brian Curtin
d2e948d720
Implement #7944 . Use `with` throughout the test suite.
2010-10-13 02:56:26 +00:00
Brian Curtin
2c3563f782
Implement #7944 . Use `with` throughout the test suite.
2010-10-13 02:40:26 +00:00
Brian Curtin
5acec04db5
Implement #7944 . Use `with` throughout the test suite.
2010-10-13 02:29:46 +00:00
Brian Curtin
28f96b5b26
Implement #7944 . Use `with` throughout the test suite.
2010-10-13 02:21:42 +00:00
Benjamin Peterson
01e3979757
account for the module __dict__ being cleared when its module is
2010-10-13 01:04:36 +00:00
Benjamin Peterson
5c4bfc4af0
prefer clearing global objects to obscure module.__dict__ bugs #10068
2010-10-12 22:57:59 +00:00
Victor Stinner
b103a937ea
Issue #6612 : Fix site and sysconfig to catch os.getcwd() error, eg. if the
...
current directory was deleted.
2010-10-12 22:23:23 +00:00
Antoine Pitrou
04248a8d99
Issue #3873 : Speed up unpickling from file objects which have a peek()
...
method.
2010-10-12 20:51:21 +00:00
Antoine Pitrou
b0182c8ca5
Issue #10075 : Add a session_stats() method to SSLContext objects.
2010-10-12 20:09:02 +00:00
Martin v. Löwis
baecd7243a
Upgrade to Unicode 6.0.0.
...
makeunicodedata.py: download all data files from unicode.org,
switch to extracting Unihan data from zip file.
Read linebreakprops and derivednormalizationprops even for
old versions, even though they are not used in delta records.
test:unicode.py: U+11000 is now assigned, use U+14000 instead.
2010-10-11 22:42:28 +00:00
Vinay Sajip
1c71b2af1a
Issue #9948 : logging: fixed problem of losing filename case information.
2010-10-10 20:36:04 +00:00
Georg Brandl
002fa2de90
Bump to 3.2a3.
2010-10-10 09:40:34 +00:00
Georg Brandl
de0b4d1aba
Update pydoc topics.
2010-10-10 09:37:51 +00:00
Antoine Pitrou
dbec780a0b
Issue #9437 : Fix building C extensions with non-default LDFLAGS.
2010-10-10 09:37:12 +00:00
Vinay Sajip
8382d0fe2e
Removed duplicated method.
2010-10-09 11:24:34 +00:00
Antoine Pitrou
81564093a1
Issue #1051 : Add a script (Lib/test/make_ssl_certs.py) to generate the
...
custom certificate and private key files used by SSL-related certs.
2010-10-08 23:06:24 +00:00
Antoine Pitrou
d7931095d5
Add some debug output in verbose mode
2010-10-08 18:46:09 +00:00
Antoine Pitrou
f51d8d3a2e
Better Python spawning primitives in test.script_helper, for
...
easier writing of unit tests and better error reporting.
2010-10-08 18:05:42 +00:00
R. David Murray
96fd54eaec
#4661 : add bytes parsing and generation to email (email version bump to 5.1.0)
...
The work on this is not 100% complete, but everything is present to
allow real-world testing of the code. The only remaining major todo
item is to (hopefully!) enhance the handling of non-ASCII bytes in headers
converted to unicode by RFC2047 encoding them rather than replacing them with
'?'s.
2010-10-08 15:55:28 +00:00
Antoine Pitrou
59fdd6736b
Issue #1589 : Add ssl.match_hostname(), to help implement server identity
...
verification for higher-level protocols.
2010-10-08 10:37:08 +00:00
Hirokazu Yamamoto
54c950f6b4
Issue #9978 : Wait until subprocess completes initialization. (Win32KillTests in test_os)
2010-10-08 08:38:15 +00:00
Raymond Hettinger
bc95973b51
Fix handling on negative numbers in ast.literal_eval().
2010-10-08 00:47:45 +00:00
Brian Curtin
afa88b5dac
Fix #8584 . Fix the skipping of a number of tests due to incorrect importing.
...
This undoes a previous attempt to fix some of the skips. Value and copy
come from sharedctypes rather than plain ctypes, and the test skipping is
then done at the class level rather than test-by-test.
There are zero skipped tests after the fix.
2010-10-07 01:12:19 +00:00
Antoine Pitrou
7980eaa98d
Issue #9759 : GzipFile now raises ValueError when an operation is attempted
...
after the file is closed. Patch by Jeffrey Finkelstein.
2010-10-06 21:21:18 +00:00
Antoine Pitrou
fa9c38d8e9
FakeSocket is (supposed to be) gone in 3.x
2010-10-06 18:38:22 +00:00
Brian Quinlan
1e2ae4f054
Fixes 9903: test_concurrent_futures writes on stderr
2010-10-06 13:05:45 +00:00
Amaury Forgeot d'Arc
b441554835
#2982 More test coverage for the pyexpat parser.
2010-10-05 23:14:47 +00:00
Antoine Pitrou
2f92e783b8
Fix test_tk under OS X with Tk 8.4. Patch by Ned Deily.
...
This should fix some buildbot failures.
2010-10-05 11:24:49 +00:00
Éric Araujo
6108bf5ed0
Fix interaction of custom translation classes and caching ( #9042 )
2010-10-04 23:52:37 +00:00
Antoine Pitrou
7b998e9f52
GzipFile.peek improvements, suggested by Nir Aides.
2010-10-04 21:55:14 +00:00
Giampaolo Rodolà
977c707b42
Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher
2010-10-04 21:08:36 +00:00
Lars Gustäbel
331b8002f0
Issue #9065 : no longer use "root" as the default for the
...
uname and gname field.
If tarfile creates a new archive and adds a file with a
uid/gid that doesn't have a corresponding name on the
system (e.g. because the user/group account was deleted) it
uses the empty string in the uname/gname field now instead
of "root". Using "root" as the default was a bad idea
because on extraction the uname/gname fields are supposed
to override the uid/gid fields. So, all archive members
with nameless uids/gids belonged to the root user after
extraction.
2010-10-04 15:18:47 +00:00
Senthil Kumaran
f580adee27
Remove the debugging print line from the test.
2010-10-04 05:42:58 +00:00
Senthil Kumaran
58d5dbf80b
Fix Issue10012 - httplib headers, which are (sometimes mistakenly) int are explicitly cast to str (bytes - in py3k).
2010-10-03 18:22:42 +00:00
Senthil Kumaran
4271372a71
Fix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ
2010-10-03 17:55:45 +00:00
Tarek Ziadé
4bcceef5a1
Fixed #8980 : distutils.command.check was failing w/ docutils installed
2010-10-03 14:18:09 +00:00
Benjamin Peterson
970d1887c5
add a test and a note about metaclasses now being abcs
2010-10-02 17:55:47 +00:00
R. David Murray
5397e862e2
#1050268 : make parseaddr 'quote' the contents of quoted strings in addresses.
...
Also made the doc string for email._parseaddr's 'quote' function more
accurate; I'd love to make the function match the old docstring instead,
but other code uses it according the existing semantics.
2010-10-02 15:58:26 +00:00
R. David Murray
8f7bcb3f85
Make the printing of sqlite version in verbose mode work with regrtest -w.
2010-10-02 13:29:13 +00:00
Victor Stinner
46c7b3b283
Issue #8670 : Rename testcapi unicode test methods
...
* test_aswidechar() => unicode_aswidechar()
* test_aswidecharstring() => unicode_aswidecharstring()
2010-10-02 11:49:31 +00:00
Victor Stinner
ea3f305a25
Oops, revert unwanted _testcapi changes of r85174
2010-10-02 11:46:20 +00:00
Victor Stinner
749261e241
Issue #8670 : ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t
2010-10-02 11:25:35 +00:00
Victor Stinner
5593d8aeb4
Issue #8670 : PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() replace
...
UTF-16 surrogate pairs by single non-BMP characters for 16 bits Py_UNICODE
and 32 bits wchar_t (eg. Linux in narrow build).
2010-10-02 11:11:27 +00:00
Victor Stinner
1c24bd0252
Issue #8870 : PyUnicode_AsWideCharString() doesn't count the trailing nul character
...
And write unit tests for PyUnicode_AsWideChar() and PyUnicode_AsWideCharString().
2010-10-02 11:03:13 +00:00
Senthil Kumaran
5a2da3b3ad
Use proper variable name 'data' instead of 'str' in the send method.
2010-10-02 10:33:13 +00:00
Benjamin Peterson
aec5fd1397
type.__abstractmethods__ should raise an AttributeError #10006
2010-10-02 00:03:31 +00:00
R. David Murray
70a9993bfd
Fix docstring typo.
2010-10-01 20:38:33 +00:00
R. David Murray
31e984c39c
#10004 : in Q encoded word ignore '=xx' when xx is not valid hex.
...
Bug report and fix by Thomas Guettler.
2010-10-01 15:40:20 +00:00
Brian Curtin
9e88b5aeee
Fix #10003 . Add SIGBREAK to the set of valid signals on Windows.
...
This fixes a regression noticed by bzr, introduced by issue #9324 .
2010-10-01 14:49:24 +00:00
Alexander Belopolsky
38e2996152
Issue #6608 : time.asctime is now checking struct tm fields its input
...
before passing it to the system asctime. Patch by MunSic Jeong.
2010-10-01 14:18:49 +00:00
R. David Murray
d2c310f0b7
Fix a couple spelling errors in comments and delete redundant __len__ def.
2010-10-01 02:08:02 +00:00
Senthil Kumaran
0f476d49f8
Issue1491 - BaseHTTPServer incorrectly implements response code 100
2010-09-30 06:09:18 +00:00
Mark Dickinson
c60371748b
Issue #9599 : Further accuracy tweaks to loghelper. For an integer n that's small enough to be converted to a float without overflow, log(n) is now computed as log(float(n)), and similarly for log10.
2010-09-29 19:06:36 +00:00
Mark Dickinson
0c0714f954
Add testcases from bug report #9980 .
2010-09-29 18:41:54 +00:00
Victor Stinner
15d597a245
test_imp: getfilesystemencoding() cannot be None anymore
...
And the codec name is normalized.
2010-09-29 16:59:46 +00:00
Victor Stinner
16004ace5b
Use os.fsencode() to support surrogates
2010-09-29 16:59:18 +00:00
Antoine Pitrou
a5785b1524
Fix NNTP when there's a ".netrc" file
2010-09-29 16:19:50 +00:00
Antoine Pitrou
2620d81b7f
Disable the usenetrc option when testing nntplib
2010-09-29 16:08:29 +00:00
Antoine Pitrou
69ab95105f
Issue #9360 : Cleanup and improvements to the nntplib module. The API
...
now conforms to the philosophy of bytes and unicode separation in Python 3.
A test suite has also been added.
2010-09-29 15:03:40 +00:00
Brian Curtin
926f0da582
Fix #9978 . WINFUNCTYPE is from ctypes, not from ctypes.wintypes.
...
r85073 changed the importing in wintypes to not use *, so the previous
usage here became even more incorrect.
2010-09-29 14:51:42 +00:00
Antoine Pitrou
c3ed2e7f83
Issue #9962 : GzipFile now has the peek() method.
2010-09-29 10:49:46 +00:00
Victor Stinner
41a64a53a3
linecache.updatecache(): don't the lines into the cache on IOError
...
Use the same behaviour than Python 2.7.
2010-09-29 01:30:45 +00:00
Victor Stinner
78f43a73cb
linecache.updatecache() returns an empty list on error
...
lines variable was not set on IOError
2010-09-29 01:24:59 +00:00
R. David Murray
d68d4e8e42
Have test_sqlite print version info when run in verbose mode.
2010-09-29 01:22:20 +00:00
R. David Murray
11cabcf73d
#7110 : have regrtest print test failures and tracebacks to stderr not stdout.
...
Patch by Sandro Tosi.
2010-09-29 01:08:05 +00:00
Hirokazu Yamamoto
cc868d430b
Issue #3612 : Added new types to ctypes.wintypes. (CHAR and pointers)
2010-09-28 21:08:38 +00:00
Brian Curtin
1771b54bed
Implement #8521 . Added named argument handling to winreg's CreateKeyEx,
...
DeleteKeyEx, and OpenKeyEx.
Note that CKE and DKE are new functions for 3.2 so I didn't give them a
versionchanged because of the existing versionadded. OpenKeyEx already
existed so it gets a versionchanged tag.
2010-09-27 17:56:36 +00:00
Antoine Pitrou
6d7df63837
Issue #9950 : Fix socket.sendall() crash or misbehaviour when a signal is
...
received. Now sendall() properly calls signal handlers if necessary,
and retries sending if these returned successfully, including on sockets
with a timeout.
2010-09-27 17:52:25 +00:00
Alexander Belopolsky
0ae33611fa
Issue 9941: Minor code cleanup before implementing the context manager feature:
...
- Eliminated code repetition between run and runctx;
- Removed redundant calls to dict.key;
- Removed unused "blabbed" attribute;
- Simplified the loop in write_results_file().
2010-09-27 15:49:20 +00:00
Senthil Kumaran
42ef4b1f4c
Fix Issue1595365 - Adding the req.headers after the un-redirect headers have
...
been added. This helps in accidental overwritting of User-Agent header to
default value. To preserve the old behavior, only headers not in unredirected
headers will be updated.
2010-09-27 01:26:03 +00:00
Antoine Pitrou
cb15988114
Issue #8445 : try to fix some buildbot failures on test_ttk_guionly.
...
Patch by Guilherme.
2010-09-26 16:36:33 +00:00
Vinay Sajip
4fbe4b340a
logging: NullHandler optimisation.
2010-09-26 11:04:10 +00:00
Vinay Sajip
9fdd11b3b6
Issue #9947 : logging: Fixed locking bug in stopListening.
2010-09-25 17:48:25 +00:00
Vinay Sajip
32fb6a81f9
Issue #9945 : logging: Fixed locking bugs in addHandler/removeHandler.
2010-09-25 17:42:36 +00:00
Alexander Belopolsky
a847c81914
This should fix buildbot failure introduced by r84994
2010-09-24 22:04:22 +00:00
Brian Curtin
82df53e932
Fix a line that got hacked up by r82659.
2010-09-24 21:04:05 +00:00
Antoine Pitrou
a4024e2dd5
Make _kill_process more robust under Windows too (see issue #8432 )
2010-09-24 18:57:01 +00:00
Alexander Belopolsky
ff09ce211f
Issue #9936 : Fixed executable lines' search in the trace module.
2010-09-24 18:03:12 +00:00
Brian Curtin
e8e8042bb5
Fix #9790 again. Rather than handle NotImplementedError at runtime as
...
before, only attempt the import where nt._getfinalpathname could actually
work, i.e., Windows Vista and beyond.
2010-09-24 13:56:34 +00:00
Brian Curtin
0151b8edda
LoginTests fails on a number of buildbots with different errors. Skip
...
it for now until a buildbot-safe solution comes up.
2010-09-24 13:43:43 +00:00
Brian Curtin
0dac808b3e
Fix #9790 : Rework the imports necessary for ntpath.samefile and
...
ntpath.sameopenfile.
2010-09-23 20:38:14 +00:00
Antoine Pitrou
605c293031
Further tarfile / test_tarfile cleanup
2010-09-23 20:15:14 +00:00
Mark Dickinson
b09a3d69a6
Issue #9930 : Remove an unnecessary type check in wrap_binaryfunc_r;
...
this was causing reversed method calls like float.__radd__(3.0, 1) to
return NotImplemented instead of the expected numeric value.
2010-09-23 20:11:19 +00:00
Brian Curtin
e8e4b3bfd6
#9808 . Implement os.getlogin for Windows, completed by Jon Anglin.
...
The test is semi-dumb, it just makes sure something comes back since we
don't have a solid source to validate the returned login. We can't be 100%
sure that the USERNAME env var will always match what os.getlogin() returns,
so we don't make any specific assertion there.
2010-09-23 20:04:14 +00:00
Antoine Pitrou
ab58b5f90e
Try harder to fix test_tarfile under Windows buildbots
2010-09-23 19:39:35 +00:00
Antoine Pitrou
95f5560b46
Try to fix test_tarfile issues on Windows buildbots by closing file
...
objects explicitly instead of letting them linger on.
2010-09-23 18:36:46 +00:00
Antoine Pitrou
7b9698435d
Issue #1675951 : Allow GzipFile to work with unseekable file objects.
...
Patch by Florian Festi.
2010-09-23 16:22:51 +00:00
Hirokazu Yamamoto
dda7fdf194
Skip estLoadWithUNC when UNC is not available.
2010-09-23 15:28:35 +00:00
Hirokazu Yamamoto
b3b390d7b3
Issue #9868 : locale was left changed after TestEnUSCollation#setUp raised
...
TestSkip exception.
2010-09-23 15:20:15 +00:00
Vinay Sajip
0637d493e9
logging: added QueueListener and documentation.
2010-09-23 08:15:54 +00:00
Florent Xicluna
d12a420acc
Fix encoding for test case added in r84967.
2010-09-23 00:46:13 +00:00
Florent Xicluna
42d544505f
Fix typo and add test case.
2010-09-22 22:35:38 +00:00
Barry Warsaw
31c604d3a7
Issue 9916: Add some missing errno symbols.
2010-09-22 20:58:04 +00:00
Vinay Sajip
0258ce8f0a
logging: Added QueueHandler.prepare and updated documentation.
2010-09-22 20:34:53 +00:00
Daniel Stutzbach
c944cfc793
Issue9131: Mark fragile test as CPython-specific
2010-09-21 21:08:09 +00:00
Antoine Pitrou
38425292fb
Issue #9908 : Fix os.stat() on bytes paths under Windows 7.
2010-09-21 18:19:07 +00:00
Alexander Belopolsky
3e62f78c4e
Fixed microsecond rounding in python version of utcfromtimestamp
2010-09-21 16:30:56 +00:00
Antoine Pitrou
b3bfc3d88b
Issue #9899 : Fix test_tkinter.test_font on various platforms. Patch by
...
Ned Deily.
2010-09-21 16:26:09 +00:00
Vinay Sajip
212b590e11
logging: Updated LoggerAdapter implementation.
2010-09-21 11:31:32 +00:00
Vinay Sajip
c84f016988
Added some methods to LoggerAdapter, and updated documentation.
2010-09-21 11:25:39 +00:00
Benjamin Peterson
26d64aeee4
rewrite nocaret test to not rely on a specific SyntaxError
2010-09-20 21:47:37 +00:00
Barry Warsaw
0646b4bb77
test_get_makefile_filename() is not compatible with Windows.
2010-09-20 19:12:07 +00:00
Barry Warsaw
ebbef6fef2
Issue 9877: expose sysconfig.get_makefile_filename() in the public API.
2010-09-20 15:29:53 +00:00
Vinay Sajip
ae7d7fa0fe
Reverted changes which were inadvertently committed.
2010-09-20 10:29:54 +00:00
Vinay Sajip
61c3f0dae7
logging: added hasHandlers() to LoggerAdapter.
2010-09-20 10:13:13 +00:00
Vinay Sajip
b4a0809ad7
logging: Add hasHandlers() method to Logger.
2010-09-20 09:55:00 +00:00
Antoine Pitrou
3d8580f690
Try a more robust implementation of _kill_process
2010-09-20 01:33:21 +00:00
Antoine Pitrou
84e751a442
Try to fix buildbot failure ( #9902 )
2010-09-20 00:12:19 +00:00
Antoine Pitrou
7c08744f52
Make error more explicit in test_finalize_with_trace
2010-09-19 23:28:30 +00:00
Antoine Pitrou
fedd481596
Try to make signal-sending tests in test_subprocess more robust on slow machines
2010-09-19 23:06:53 +00:00
Antoine Pitrou
fb8db8f635
Try to fix test_subprocess on "x86 debian parallel 3.x" buildbot
2010-09-19 22:46:05 +00:00
Senthil Kumaran
5cc9a052c1
Update the test_distutils mode test to test with umask value properly.
2010-09-19 03:09:54 +00:00
Florent Xicluna
eb19dce085
Issue #1686 : Fix string.Template when overriding the pattern attribute.
2010-09-18 23:34:07 +00:00
Antoine Pitrou
98b46702d2
Issue #9854 : SocketIO objects now observe the RawIOBase interface in
...
non-blocking mode: they return None when an operation would block (instead
of raising an exception).
2010-09-18 22:59:00 +00:00
Antoine Pitrou
8db3027e6a
Issue #9895 : speed up test_subprocess
2010-09-18 22:38:48 +00:00
Brian Quinlan
81c4d36928
Initial implementation of PEP 3148
2010-09-18 22:35:02 +00:00
Antoine Pitrou
679e0f2328
Issue #9894 : Do not hardcode ENOENT in test_subprocess.
...
(GNU/Hurd is not dead)
2010-09-18 17:56:02 +00:00
Hirokazu Yamamoto
f2dec8d6f1
In Python3000, Tkinter was renamed to tkinter. And print is now function.
2010-09-18 04:42:41 +00:00
Hirokazu Yamamoto
2cdacd7495
Added missing BaseTest.tearDown(self). Fixed refleak.
2010-09-18 03:54:32 +00:00
Senthil Kumaran
0c25b45bd8
Skip the distutils mode test on Windows OS.
2010-09-18 02:55:03 +00:00
Vinay Sajip
bc85d848f5
Temporarily commented out test which succeeds locally but fails on buildbots, while investigating.
2010-09-17 23:35:29 +00:00
Victor Stinner
e797c16f84
Issue #767645 : Set os.path.supports_unicode_filenames to True in posixpath
...
Previous commit changed macpath but macpath is not used anymore as os.path
2010-09-17 23:34:26 +00:00
Amaury Forgeot d'Arc
d61d077bf5
#1730136 : Fix comparison between a tk Font object and an object of a different type.
2010-09-17 23:27:09 +00:00
Vinay Sajip
19ec67acf6
Issue #9441 : logging: Improved test coverage for rotating file handlers.
2010-09-17 18:57:36 +00:00
Senthil Kumaran
9b86a69fc7
Fix Issue2236: Distutils' mkpath implementation ignoring the "mode" parameter
2010-09-17 16:35:37 +00:00
Raymond Hettinger
35c87f2b8e
Issue 9865: add __sizeof__ to OrderedDict.
2010-09-16 19:10:17 +00:00
Antoine Pitrou
aee47561fc
Relax test condition (fix failures on FreeBSD buildbots)
2010-09-16 15:04:49 +00:00
Raymond Hettinger
c1cc0d08d4
Remove unneeded exception chaining.
2010-09-16 08:06:05 +00:00
Raymond Hettinger
3255c63e28
Improve comment
2010-09-16 00:31:21 +00:00
Giampaolo Rodolà
86909b50b7
rename DISCONNECTED global constant in _DISCONNECTED
2010-09-15 21:59:04 +00:00
Giampaolo Rodolà
985b68e611
Store all errors signaling a disconnection into a global frozenset to save some computation time on recv() and send().
2010-09-15 21:43:47 +00:00
Matthias Klose
cf1dd711a4
Try harder on issue #7356 : ctypes.util: Make parsing of ldconfig output
...
independent of the locale. Set LC_ALL=C too.
2010-09-15 13:06:09 +00:00
Antoine Pitrou
8dd2387a60
Reverted unwanted change in r84826
2010-09-15 11:12:57 +00:00
Antoine Pitrou
5aa0d10560
Improve docs for socket.makefile() and SocketIO
2010-09-15 09:32:45 +00:00
Antoine Pitrou
872b79d02f
Add a comment explaining why SocketIO is needed
2010-09-15 08:39:25 +00:00
Raymond Hettinger
1006bd459b
Future proof total_ordering against changes in methods defined on object.
2010-09-14 22:55:13 +00:00
Antoine Pitrou
2e55fec14c
Make testDefaults in test.test_socket.BasicSocketPairTest more reliable.
2010-09-14 21:24:25 +00:00
Raymond Hettinger
f7328d026b
Improve iteration speed by only proxying back links.
...
The forward links are hard references.
The sentinel element is also a weakref proxy
(to break a forward cylce wrapping around the sentinel).
2010-09-14 19:40:15 +00:00
Antoine Pitrou
328ec7455f
Issue #9854 : The default read() implementation in io.RawIOBase now
...
handles non-blocking readinto() returning None correctly.
2010-09-14 18:37:24 +00:00
Antoine Pitrou
9e0b864ac0
Issue #1552 : socket.socketpair() now returns regular socket.socket
...
objects supporting the whole socket API (rather than the "raw"
_socket.socket objects).
2010-09-14 18:00:02 +00:00
Antoine Pitrou
a468adc76d
Issue #9853 : Fix the signature of SSLSocket.recvfrom() and
...
SSLSocket.sendto() to match the corresponding socket methods.
2010-09-14 14:43:44 +00:00
Antoine Pitrou
2ed94eb520
Do not print additional shutdown message when gc.DEBUG_SAVEALL is set
2010-09-14 09:48:39 +00:00
Vinay Sajip
8552d1fc8f
Added test for QueueHandler.
2010-09-14 09:34:09 +00:00
Alexander Belopolsky
e1b6a9ac99
Added files missed in r84780. Thanks, Florent.
2010-09-14 01:11:35 +00:00
Raymond Hettinger
98a5f3f838
Issue 9840: Add reprlib.recursive_repr(), a decorator for handling recursive calls to __repr__ methods.
2010-09-13 21:36:00 +00:00
Daniel Stutzbach
9f0cbf1c72
Issue #9213 : Add index and count methods to range objects, needed to
...
meet the API of the collections.Sequence ABC.
2010-09-13 21:16:29 +00:00
Eric Smith
e4d6317c87
Issue 7994: Make object.__format__() raise a PendingDeprecationWarning
...
if the format string is not empty. Manually merge r79596 and r84772
from 2.x.
Also, apparently test_format() from test_builtin never made it into
3.x. I've added it as well. It tests the basic format()
infrastructure.
2010-09-13 20:48:43 +00:00
Vinay Sajip
af9d10aa30
logging: enhanced HTTPHandler
2010-09-13 20:40:30 +00:00
Vinay Sajip
9907918174
Removed unused, commented-out code.
2010-09-13 20:28:57 +00:00
Victor Stinner
ccb706cf0a
Issue #767645 : Set os.path.supports_unicode_filenames to True on Mac OS X
...
(macpath module).
2010-09-13 19:41:36 +00:00
Alexander Belopolsky
d8642c3274
Removed debugging setting
2010-09-13 18:15:33 +00:00
Alexander Belopolsky
4d7701729c
Issue #9315 : Fix for the trace module to record correct class name
...
when tracing methods. Unit tests. Patch by Eli Bendersky.
2010-09-13 18:14:34 +00:00
Florent Xicluna
dc69e7217a
Make test.regrtest.__file__ absolute, this was not always the case when running profile or trace, for example. (issue #9323 )
2010-09-13 16:35:02 +00:00
Hirokazu Yamamoto
bea8ae7948
get_build_version() is needed even where sys.platform != "win32".
...
Try to fix buildbot error in other way.
2010-09-13 07:18:30 +00:00
Hirokazu Yamamoto
68201bdb6d
Issue #9313 : Use unittest.skipUnless to skip old MSVC.
2010-09-13 05:36:21 +00:00
Florent Xicluna
a87b383ac1
Reenable test_ucs4 and remove some duplicated lines.
2010-09-13 02:28:18 +00:00