Commit graph

5325 commits

Author SHA1 Message Date
Benjamin Peterson
838c7b3619 remove some __getslice__ 2008-05-27 01:18:39 +00:00
Benjamin Peterson
c1c83bb0de remove duplication in test module 2008-05-26 21:44:26 +00:00
Gregory P. Smith
4036fd4b75 Fixes issue2791: subprocess.Popen.communicate leaked a file descripton until
the last reference to the Popen instance was dropped.  Adding explicit
close() calls fixes it.

Candidate for backport to release25-maint.
2008-05-26 20:22:14 +00:00
Benjamin Peterson
3aa84a7f28 warn about some members of the commands module 2008-05-26 19:41:53 +00:00
Benjamin Peterson
eeb2b21ab0 add __all__ to test_support 2008-05-26 16:22:27 +00:00
Gregory P. Smith
9e6468be1d Fix issue2669: bsddb simple/legacy interface iteration silently fails
when database changes size during iteration.

It now behaves like a dictionary, the next attempt to get a value from
the iterator after the database has changed size will raise a RuntimeError.
2008-05-25 08:28:29 +00:00
Georg Brandl
e08e3d0686 #2959: allow multiple close() calls for GzipFile. 2008-05-25 08:07:37 +00:00
Georg Brandl
392c6fc02d ConfigParser renaming reversal part 3: move module into place and adapt imports. 2008-05-25 07:25:25 +00:00
Georg Brandl
a6168f9e0a Queue renaming reversal part 3: move module into place and
change imports and other references. Closes #2925.
2008-05-25 07:20:14 +00:00
Gregory P. Smith
8107290fa1 * Give the test_bsddb3 tests a unique temporary directory to run their
stuff in and clean it up afterwards regardless of the result.
* Get rid of duplicate list of test modules to run, they're maintained
  within test_all now.
* Print the BerkeleyDB version to stderr when running test_bsddb3 to
  help buildbot problem diagnosis.
2008-05-25 07:14:09 +00:00
Georg Brandl
e152a77d96 socketserver renaming reversal part 3: move the module into the right
place and fix all references to it.  Closes #2926.
2008-05-24 18:31:28 +00:00
Martin v. Löwis
7d3d04d6db Don't try to get the window size if it was never set before.
Fixes the test failure on Solaris.
2008-05-24 09:36:45 +00:00
Martin v. Löwis
27e4a179f2 Issue #1390: Raise ValueError in toxml when an invalid comment would
otherwise be produced.
2008-05-23 15:18:28 +00:00
Mark Dickinson
badd7da622 Skip math.sum tests on non IEEE 754 platforms, and on IEEE 754 platforms
that exhibit the problem described in issue #2937.
2008-05-23 12:07:36 +00:00
Brett Cannon
2ee0e8eaec Revert the renaming of repr to reprlib. 2008-05-23 05:03:59 +00:00
Mark Dickinson
d055835253 Better error reporting in test_math.py 2008-05-23 03:30:01 +00:00
Mark Dickinson
c11c3391b0 Add tests for math.sum (Issue #2819) 2008-05-23 02:36:48 +00:00
Benjamin Peterson
3a7305ed14 fix test_pydoc so it works on make installed Python installations
Also let it pass when invoked directly
2008-05-22 23:09:26 +00:00
Benjamin Peterson
83d453421f remove redundant invocation of json doctests 2008-05-22 01:02:23 +00:00
Benjamin Peterson
948ee7a7c8 use more specific asserts in test_opcode 2008-05-22 00:57:02 +00:00
Benjamin Peterson
a4e4ef1cea check for toolbox glue before testing platform.mac_ver intensly 2008-05-21 22:52:39 +00:00
Georg Brandl
88659b0ab2 #2592: delegate nb_index and the floor/truediv slots in weakref.proxy. 2008-05-20 08:40:43 +00:00
Georg Brandl
112aa50329 Patch #1775025: allow opening zipfile members via ZipInfo instances.
Patch by Graham Horler.
2008-05-20 08:25:48 +00:00
Georg Brandl
b7e419ebb9 Use inspect.getabsfile() to get the documented module's filename. 2008-05-20 08:10:03 +00:00
Georg Brandl
fb3de1fcd2 Improve diffing logic and output for test_pydoc. 2008-05-20 08:07:36 +00:00
Georg Brandl
bcdafa44f2 Remove html package and fix test_htmlparser. 2008-05-20 07:58:42 +00:00
Georg Brandl
dffbf5f542 Revert copy_reg -> copyreg rename. 2008-05-20 07:49:57 +00:00
Georg Brandl
6634bf2919 Tkinter rename reversal: remove tkinter package, adapt imports and docs. 2008-05-20 07:13:37 +00:00
Georg Brandl
7bb1653cc3 Argh, this is the *actual* test that works under Windows. 2008-05-20 06:47:31 +00:00
Georg Brandl
b740f6a0c7 Activate two more test cases in test_httpservers. 2008-05-20 06:15:36 +00:00
Fred Drake
d995e1150c revert creation of the html.entities and html.parser modules
(http://bugs.python.org/issue2882)
2008-05-20 06:08:38 +00:00
Benjamin Peterson
d21dabc890 change some imports in tests so they will not be skipped in 3.0 2008-05-18 23:07:07 +00:00
Benjamin Peterson
913c15c1c6 fix test_platform (os was not imported) 2008-05-18 22:07:42 +00:00
Georg Brandl
6e7e0790de Fix test_pyclbr after another platform-dependent function was added to urllib. 2008-05-18 21:10:19 +00:00
Ronald Oussoren
7a0f4c75b1 - Add unittests for platform.mac_ver (or rather, ensure that the unittest for
that function actually tests something on OSX).

- Add documentation to platform.mac_ver that explains why the middle element
  of the return value will not contain useful information.
2008-05-18 20:54:47 +00:00
Benjamin Peterson
f5c38dadf6 bring test_pydoc up to my high standards (now that I have them) 2008-05-18 20:48:07 +00:00
Georg Brandl
8632cc2573 GHOP #121: improve test_pydoc, by Benjamin Peterson. 2008-05-18 16:32:48 +00:00
Georg Brandl
0bb0299ad8 Take namedtuple item names only from ascii_letters (this blew up on OSX),
and make sure there are no duplicate names.
2008-05-18 10:39:26 +00:00
Georg Brandl
f899dfa1d1 GHOP #134, #171, #137: unit tests for the three HTTPServer modules. 2008-05-18 09:12:20 +00:00
Georg Brandl
a9916b55de #2353: raise Py3k warning in file.xreadlines(). 2008-05-17 22:11:54 +00:00
Fred Drake
cb51d84214 update references and documentation for modules in the new html package
(http://bugs.python.org/issue2882)
2008-05-17 21:14:05 +00:00
Fred Drake
91ae250273 rename HTMLParser to html.parser, htmlentitydefs to html.entities
(http://bugs.python.org/issue2882)
2008-05-17 20:30:04 +00:00
Benjamin Peterson
c6d64ec83f revert 63425 over Guido's Febuary message about this, that I missed 2008-05-17 20:09:42 +00:00
Benjamin Peterson
d7943cb71d fix spelling 2008-05-17 19:51:10 +00:00
Benjamin Peterson
79a922d6df add Py3k warnings to oct and hex. backport hex behavior (because it's not different) 2008-05-17 19:21:20 +00:00
Gregory P. Smith
af8a68733f fix issue2381: test_subprocess fails if your sys.executable is on a
path with a space in it.
2008-05-17 07:17:34 +00:00
Alexandre Vassalotti
3c4971c40e Added Python 3.0 warning to cPickle. 2008-05-16 19:14:31 +00:00
Alexandre Vassalotti
ea0b22a167 Patch by Quentin Gallet-Gilles: Renaming leftovers for 2.6.
This fixes the omissions of configparser, copyreg, queue and
socketserver renaming.
2008-05-16 18:03:52 +00:00
Georg Brandl
ad9afeb8f0 Tkinter rename, step 2: fix imports and add stub modules. 2008-05-16 15:48:15 +00:00
Georg Brandl
ecf9091f59 Don't allow keyword arguments to reversed(). 2008-05-16 13:24:29 +00:00