Commit graph

15565 commits

Author SHA1 Message Date
Benjamin Peterson
f4fd0bf7c1 keep DeprecationWarning from failing test 2010-03-19 01:06:33 +00:00
Benjamin Peterson
52d4aeac86 make compiler's py3k warning a full deprecation warning #6837 2010-03-18 23:12:43 +00:00
Benjamin Peterson
e30b3fa17a these lines can now be dispensed with 2010-03-18 22:44:54 +00:00
Collin Winter
001a3952c9 Add support for weak references to code objects. This will be used by an optimization in the incoming Python 3 JIT.
Patch by Reid Kleckner!
2010-03-18 21:54:01 +00:00
Florent Xicluna
2e0a53fdf6 Issue #8024: Update the Unicode database to 5.2 2010-03-18 21:50:06 +00:00
Florent Xicluna
735885428d #8155: Preserve backward compatibility for test_support.check_warnings(). Add regression tests. 2010-03-18 19:51:47 +00:00
Senthil Kumaran
f3e9b2a996 Fix for Issue8135 - urllib.unquote to support mixed percent escapes 2010-03-18 12:14:15 +00:00
Collin Winter
43fe03a206 Make test_pwd more stable in the face of unusual LDAP/NIS/Kerberos deployments (the old test was flaky on Google buildslaves). 2010-03-18 00:10:34 +00:00
Antoine Pitrou
d7b731d160 Issue #8104: socket.recv_into() and socket.recvfrom_into() now support
writing into objects supporting the new buffer API, for example bytearrays
or memoryviews.
2010-03-17 22:45:39 +00:00
Collin Winter
2227251a4e Fix a race condition in test_asynchat uncovered by the Unladen Swallow JIT. 2010-03-17 22:36:26 +00:00
Benjamin Peterson
0dee9c1b5c prevent lambda functions from having docstrings #8164 2010-03-17 20:41:42 +00:00
Florent Xicluna
78c1871d21 Fix and check cgi module deprecation warnings. Revert an unwanted rename in test_import. 2010-03-17 20:05:11 +00:00
Florent Xicluna
945a8ba635 Cleanup some test cases using check_warnings and check_py3k_warnings. 2010-03-17 19:15:56 +00:00
Florent Xicluna
2b73c21bed Cleanup in test_import and test_coding. 2010-03-17 19:05:04 +00:00
Collin Winter
786431282b Avoid hardcoding refcounts in tests. 2010-03-17 17:36:16 +00:00
Vinay Sajip
2060e42206 Issue #8162: logging: Clarified docstring and documentation for disable function. 2010-03-17 15:05:57 +00:00
Ezio Melotti
187f93d986 Use "x in y" instead of y.find(x) != -1. 2010-03-17 14:22:34 +00:00
Ezio Melotti
d80b4bfd0b #7092: silence some more py3k warnings. 2010-03-17 13:52:48 +00:00
Collin Winter
8b3f1ce591 Delete unused import. 2010-03-17 03:04:01 +00:00
Collin Winter
89b4f13024 Style cleanup in test_import. 2010-03-17 02:40:12 +00:00
Collin Winter
ac1d93167c Fix a trivial class of (hypothetical, future) false-positive refleaks, discovered by an optimization in Unladen Swallow's past (which will become CPython's future). 2010-03-17 02:02:30 +00:00
Matthias Klose
8b41168bab - Issue #4961: Inconsistent/wrong result of askyesno function in tkMessageBox
with Tcl/Tk-8.5.
2010-03-16 10:48:52 +00:00
Florent Xicluna
3cc8f211ed Issue #7783 and #7787: open_urlresource invalidates the outdated files from the local cache.
Use this feature to fix test_normalization.
2010-03-15 18:08:58 +00:00
Matthias Klose
fae23dc9dc - Fix typo in Lib/compileall.py(__all__). 2010-03-15 18:00:01 +00:00
Matthias Klose
b13d04c991 - Issue #8140: extend compileall to compile single files. Add -i option. 2010-03-15 17:44:12 +00:00
Matthias Klose
358e7ff36b - Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
the locale.
2010-03-15 13:42:23 +00:00
Matthias Klose
54cc539a2b - Issue #6949: Allow the _bsddb extension to be built with db-4.8.x. 2010-03-15 12:46:18 +00:00
Benjamin Peterson
f56813997f clean up files correctly 2010-03-15 03:02:37 +00:00
Benjamin Peterson
5a4c0f5cc2 remove mac 9 code 2010-03-15 03:00:35 +00:00
Benjamin Peterson
ca02f3a4d6 this little exception dance is pointless 2010-03-15 02:58:24 +00:00
Florent Xicluna
ece29b2aac Do not hardcode Expat version. It's possible to build Python with --with-system-expat option. 2010-03-14 15:20:59 +00:00
Florent Xicluna
88db6f402e Minor documentation updates for xml.etree. 2010-03-14 01:22:09 +00:00
Florent Xicluna
1b51c3d4de Do not chdir when running test_xml_etree, and enhance the findfile helper. 2010-03-13 12:41:48 +00:00
Florent Xicluna
13ba1a1c65 Move the xml test data to their own directory. 2010-03-13 11:18:49 +00:00
Victor Stinner
6e055d78e1 sqlite3: Fix a segfault on calling a connection with something else than a
string. Initialize all attributes to be able to call the statement destructor
on error.

Avoid also a duplicate connection in some tests: setUp() does already open a
connection (":memory:").
2010-03-13 03:27:07 +00:00
Victor Stinner
17d905449d Issue #7818: set().test_c_api() doesn't expect a set('abc'), modify the set. 2010-03-13 00:13:22 +00:00
Vinay Sajip
9098ee4360 Issue #8117: logging: Improved algorithm for computing initial rollover time. 2010-03-12 06:01:21 +00:00
Benjamin Peterson
654ea3713e remove shebang line from non-executable test 2010-03-11 22:34:12 +00:00
Benjamin Peterson
9cf41d0c9d normalize shebang lines to #!/usr/bin/env python 2010-03-11 22:33:25 +00:00
Benjamin Peterson
afa595b31b revert r78842 cgi.py change 2010-03-11 22:03:45 +00:00
Benjamin Peterson
651bc32a4e use proper shebang lines 2010-03-11 21:53:25 +00:00
Benjamin Peterson
75c8be048b remove executable property from doc files 2010-03-11 21:50:45 +00:00
Florent Xicluna
e2e81e8fcd Fix repr of tree Element on windows. 2010-03-11 15:55:11 +00:00
Florent Xicluna
3e8c189faa Issue #6472: The xml.etree package is updated to ElementTree 1.3. The cElementTree module is updated too. 2010-03-11 14:36:19 +00:00
Victor Stinner
4478662f83 Another fix to test_executable() of test_sys: set the current working to avoid
the #7774 bug.
2010-03-11 13:46:06 +00:00
Victor Stinner
6ecd85f401 Fix test_executable introduce in previous commit (r78835): Windows is able to
retrieve the absolute Python path even if argv[0] has been set to a non
existent program name.
2010-03-11 13:27:35 +00:00
Victor Stinner
4a7e0c858c Issue #7774: Set sys.executable to an empty string if argv[0] has been
set to an non existent program name and Python is unable to retrieve the real
program name.

Fix also sysconfig: if sys.executable is an empty string, use the current
working directory.
2010-03-11 12:34:39 +00:00
Florent Xicluna
637637021a Revert r78830: realpath() should really be applied to sys.executable. 2010-03-11 01:50:48 +00:00
Florent Xicluna
6602ec6eff It is not optimal to test sys.stderr on a debug build. 2010-03-11 01:39:55 +00:00
Florent Xicluna
e58d91c8f0 Fix the test_subprocess failure when sys.executable is meaningless: '' or a directory.
It does not fix #7774.
2010-03-11 00:56:59 +00:00