Kurt B. Kaiser
4724f40bcb
Remove port spec from run.py and fix bug where
...
subprocess fails to extract port from command line
when warnings are present.
2009-04-02 02:44:54 +00:00
Georg Brandl
569fc96f99
Fix test_doctest, missed two assignments to curframe.
2009-04-02 02:00:01 +00:00
Benjamin Peterson
3633c4f7d2
handle SEEK_ constants in test_io
2009-04-02 01:03:17 +00:00
Georg Brandl
e361bcb43f
Cache the f_locals dict of the current frame, since every access to frame.f_locals overrides its contents with the real locals which undoes modifications made by the debugging user.
2009-04-01 23:32:17 +00:00
Benjamin Peterson
71095ae5ab
remove double underscores
2009-04-01 23:15:49 +00:00
Georg Brandl
58b8b95cdb
In Pdb, stop assigning values to __builtin__._ which interferes with the one commonly installed by gettext.
2009-04-01 21:54:21 +00:00
R. David Murray
3864459196
Add tests checking the CSV module's ability to handle
...
embedded newlines in quoted field values.
2009-04-01 21:26:18 +00:00
Benjamin Peterson
cafc225f54
add seek constants to __all__
2009-04-01 21:12:54 +00:00
Georg Brandl
00b6590821
Revert accidental checkin.
2009-04-01 21:06:30 +00:00
Georg Brandl
5942b91759
Add NEWS item.
2009-04-01 21:05:44 +00:00
Georg Brandl
88ed8f2c50
#4572 : add SEEK_* values as constants in io.py.
2009-04-01 21:00:55 +00:00
Senthil Kumaran
20d114cad2
Fix for issue5040. Adding test for Content-Length
2009-04-01 20:26:33 +00:00
Jack Diederich
2ecd3c36b5
bounds check arguments to mmap.move(). All of them. Really.
...
fixes crasher on OS X 10.5
2009-04-01 20:26:13 +00:00
Brett Cannon
ce3d221447
test_warnings ironically had a single test that was not protecting the warnings
...
filter and was resetting it.
2009-04-01 20:25:48 +00:00
Brett Cannon
2da4d628a5
test_logging was blindly clearing the warnings filter. This caused
...
PendingDeprecationWarnings to be spewed all over by unittest.failIf*(). Fix
moves over to using warnings.catch_warning to protect the warnings filter.
2009-04-01 19:57:10 +00:00
Raymond Hettinger
66c4a6b51c
Issue #5647 : MutableSet.__iand__() no longer mutates self during iteration.
2009-04-01 18:50:56 +00:00
Brett Cannon
15ba4dae5a
_warnings was importing itself to get an attribute. That's bad if warnings gets
...
called in a thread that was spawned by an import itself.
Last part to close #1665206 .
2009-04-01 18:03:59 +00:00
Georg Brandl
3ade7612d8
#5655 : fix docstring oversight.
2009-04-01 17:46:01 +00:00
Brett Cannon
ad078a0d7a
The cgitb module had imports in its functions. This can cause deadlock with the
...
import lock if called from within a thread that was triggered by an import.
Partially fixes issue #1665206 .
2009-04-01 16:00:34 +00:00
Georg Brandl
61fce3877c
Fix test_xmlrpc and make the CGI handler work with no CONTENT_LENGTH.
2009-04-01 15:23:43 +00:00
Georg Brandl
63959bb973
#5631 : add upload to list of possible commands, which is presented in --help-commands.
2009-04-01 04:32:39 +00:00
Georg Brandl
e92d4b6f57
The SimpleXMLRPCServer's CGI handler now runs like a pony.
2009-04-01 04:21:14 +00:00
Jesse Noller
02cb0eb231
Fix multiprocessing.event to match the new threading.Event API
2009-04-01 03:45:50 +00:00
R. David Murray
a83da3507f
Fix issue 2522. locale.format now checks that it is passed
...
exactly one pattern, which avoids mysterious errors where it
had seemed to fail to do localization.
2009-04-01 03:21:43 +00:00
Josiah Carlson
bb94d43dcd
Fix for failing asyncore tests.
2009-04-01 01:28:11 +00:00
Georg Brandl
d8fb6ac9da
Issue #5635 : Fix running test_sys with tracing enabled.
2009-04-01 00:04:33 +00:00
Jack Diederich
d60c29ed8b
#5228 : add pickle support to functools.partial
2009-03-31 23:46:48 +00:00
R. David Murray
840ac926c5
Fix Windows test skip error revealed by buildbot. Also a comment spelling
...
correction in a previously fixed test.
2009-03-31 23:45:39 +00:00
Tarek Ziadé
3bb5a9642b
fixed the test for win32 CompileError
2009-03-31 22:47:01 +00:00
Tarek Ziadé
2bdefb3eee
catching msvc9compiler error as well
2009-03-31 22:44:10 +00:00
Tarek Ziadé
9e47ce49a0
#5583 Added optional Extensions in Distutils
2009-03-31 22:27:23 +00:00
Georg Brandl
0c7b2c9c19
#1651995 : fix _convert_ref for non-ASCII characters.
2009-03-31 22:11:53 +00:00
Josiah Carlson
aba27dd6d9
Made handle_expt_event() be called last, so that we don't accidentally read
...
after closing the socket.
2009-03-31 21:49:36 +00:00
Benjamin Peterson
d906ea62c8
fix Thread.ident when it is the main thread or a dummy thread #5632
2009-03-31 21:34:42 +00:00
Benjamin Peterson
bd9dd31abd
take the usual lock precautions around _active_limbo_lock
2009-03-31 21:06:30 +00:00
Tarek Ziadé
1a1158f955
making sdist and config test silents
2009-03-31 20:56:11 +00:00
Tarek Ziadé
899dd1221d
added tests to the install_headers command
2009-03-31 20:55:21 +00:00
Tarek Ziadé
a961a0444d
added test to the install_data command
2009-03-31 20:54:38 +00:00
Tarek Ziadé
e899b711df
more tests for the upload command
2009-03-31 20:53:55 +00:00
Tarek Ziadé
ca2b8d283a
more tests for the register command
2009-03-31 20:53:13 +00:00
Tarek Ziadé
023862890f
added tests for the clean command
2009-03-31 20:50:59 +00:00
Tarek Ziadé
c7cd138bc2
using log.warn for sys.stderr
2009-03-31 20:48:31 +00:00
Georg Brandl
ef660e8e50
#1674032 : return value of flag from Event.wait(). OKed by Guido.
2009-03-31 20:41:08 +00:00
Hirokazu Yamamoto
1d7d5325be
Issue #5387 : Fixed mmap.move crash by integer overflow. (take2)
2009-03-31 20:14:04 +00:00
Gregory P. Smith
65ff00559a
Issue an actual PendingDeprecationWarning for the TestCase.fail* methods.
...
Document the deprecation.
2009-03-31 19:59:14 +00:00
R. David Murray
612f1d5f48
Remove the regrtest check that turns any ImportError into a skipped test.
...
Hopefully all modules whose imports legitimately result in a skipped
test have been properly wrapped by the previous commits.
2009-03-31 19:49:15 +00:00
R. David Murray
bdeacba51b
Improve test_support.import_module docstring, remove
...
deprecated flag from get_attribute since it isn't likely
to do anything useful.
2009-03-31 19:33:15 +00:00
Josiah Carlson
df90b02415
This resolves issue 1161031. Tests pass.
2009-03-31 19:32:34 +00:00
R. David Murray
73fba6915a
Delete out-of-date and little-known README from the test
...
directory by consensus of devs at pycon sprint.
2009-03-31 19:31:17 +00:00
Georg Brandl
c5d8c63345
#5190 : export make_option in __all__.
2009-03-31 19:12:17 +00:00
Gregory P. Smith
7558d57ad2
Rename the actual method definitions to the official assertFoo names.
...
Adds unittests to make sure the old fail* names continue to work now
and adds a comment that they are pending deprecation.
Also adds a test to confirm that the plural Equals method variants
continue to exist even though we're unlikely to deprecate those.
http://bugs.python.org/issue2578
2009-03-31 19:03:28 +00:00
R. David Murray
597ebab744
A few more test skips via import_module, and change import_module to
...
return the error message produced by importlib, so that if an import
in the package whose import is being wrapped is what failed the skip
message will contain the name of that module instead of the name of the
wrapped module. Also fixed formatting of some previous comments.
2009-03-31 18:32:17 +00:00
Raymond Hettinger
3476d1279f
Per the language summit, the optional fastpath imports should use from-import-star.
2009-03-31 17:47:06 +00:00
Gregory P. Smith
2839985c7e
The unittest.TestCase.assertEqual() now displays the differences in lists,
...
tuples, dicts and sets on failure.
Many new handy type and comparison specific assert* methods have been added
that fail with error messages actually useful for debugging. Contributed in
by Google and completed with help from mfoord and GvR at PyCon 2009 sprints.
Discussion lives in http://bugs.python.org/issue2578 .
2009-03-31 16:54:10 +00:00
Jeremy Hylton
88f1c04215
Global statements from one function leaked into parallel functions.
...
Re http://bugs.python.org/issue4315
The symbol table used the same name dictionaries to recursively
analyze each of its child blocks, even though the dictionaries are
modified during analysis. The fix is to create new temporary
dictionaries via the analyze_child_block(). The only information that
needs to propagate back up is the names of the free variables.
Add more comments and break out a helper function. This code doesn't
get any easier to understand when you only look at it once a year.
2009-03-31 13:48:15 +00:00
Jeremy Hylton
1c157ea984
Add is_declared_global() which distinguishes between implicit and
...
explicit global variables.
2009-03-31 13:17:03 +00:00
Hirokazu Yamamoto
9d2ee5ded2
Issue #5387 : Fixed mmap.move crash by integer overflow.
2009-03-31 13:13:05 +00:00
Jesse Noller
b2898e0acb
add JoinableQueue to __all__
2009-03-31 03:31:16 +00:00
Jesse Noller
82eb5902ce
merge in patch from tim golden to fix contextmanager support for mp.Lock()
2009-03-30 23:29:31 +00:00
R. David Murray
d7bf8a5478
Actually suppress warnings in test_at_least_import_untested_modules
...
inside the catch_warnings context manager.
2009-03-30 23:10:37 +00:00
Ronald Oussoren
e0154ed7ff
Fix issue #4865 : add /Library/Python/2.7/site-packages to
...
sys.path on OSX, to make it easier to share (some) installed
packages between the system install and a user install.
2009-03-30 23:10:35 +00:00
R. David Murray
3db8a3432b
Change more tests to use import_module for the modules that
...
should cause tests to be skipped. Also rename import_function
to the more descriptive get_attribute and add a docstring.
2009-03-30 23:05:48 +00:00
Barry Warsaw
dbf95a3643
A fix for issue 1974, inspired by the patch from Andi Albrecht (aalbrecht),
...
though with some changes by me. This patch should not be back ported or
forward ported. It's a bit too risky for 2.6 and 3.x does things fairly
differently.
2009-03-30 22:42:17 +00:00
Jesse Noller
019ce773cd
finalize the queue prior to shutdown
2009-03-30 21:53:29 +00:00
Senthil Kumaran
5e95e763e1
Fix for bugs: Issue4675 and Issue4962.
2009-03-30 21:51:50 +00:00
R. David Murray
e7c9e092b3
Remove references to test_socket_ssl which was deleted in trunk
...
in r64392 and py3k in r59038.
2009-03-30 20:04:06 +00:00
R. David Murray
59beec326a
Add import_function method to test.test_support, and modify a number of
...
tests that expect to be skipped if imports fail or functions don't
exist to use import_function and import_module. The ultimate goal is
to change regrtest to not skip automatically on ImportError. Checking
in now to make sure the buldbots don't show any errors on platforms
I can't direct test on.
2009-03-30 19:04:00 +00:00
Kurt B. Kaiser
ce46511957
Tk 8.5 Text widget requires 'wordprocessor' tabstyle attr to handle mixed space/tab properly. Issue 5120, patch by Guilherme Polo.
2009-03-30 16:22:00 +00:00
Jesse Noller
459a648166
Issue 5177: use socket.SO_REUSEADDR on multiprocessing SocketManager sockets
2009-03-30 15:50:42 +00:00
R. David Murray
5cb104d1b9
Revert incorrect change.
2009-03-30 15:30:34 +00:00
Benjamin Peterson
68ffe3ec67
don't rely on the order dict repr #5605
2009-03-30 15:15:38 +00:00
R. David Murray
ad74dfe8ff
Convert import try/except to use test_support.import_module().
2009-03-30 15:14:01 +00:00
Benjamin Peterson
3c87e2289d
add missing import
2009-03-30 14:42:23 +00:00
Benjamin Peterson
33cd7ef867
fix import
2009-03-30 02:14:21 +00:00
Bob Ippolito
76a982a027
Issue 5381: fix regression in pure python code path, Issue 5584: fix a decoder bug for unicode float literals outside of a container
2009-03-29 22:33:58 +00:00
Benjamin Peterson
8e1a338129
add missing import
2009-03-29 22:27:26 +00:00
Benjamin Peterson
83db7652ca
thanks to guido's bytecode verifier, this is fixed
2009-03-29 21:31:05 +00:00
Benjamin Peterson
d2c184605e
this has been fixed since 2.6 (I love removing these)
2009-03-29 21:22:35 +00:00
Raymond Hettinger
b006fcc30c
Make life easier for non-CPython implementations.
2009-03-29 18:51:11 +00:00
Guilherme Polo
310916212e
Typo fix.
2009-03-29 10:19:05 +00:00
Collin Winter
a199f01986
Add the ability to control the random seed used by regrtest.py -r.
...
This adds a --randseed option, and makes regrtest.py -r indicate what random seed it's using so that that value can later be fed back to --randseed. This option is useful for tracking down test order-related issues found by make buildbottest, for example.
2009-03-29 03:44:19 +00:00
Georg Brandl
5adab304e3
Fix typo.
2009-03-28 00:48:48 +00:00
Benjamin Peterson
7fa9459baf
fix another name
2009-03-26 21:44:43 +00:00
Benjamin Peterson
04232973b7
update email tests to use SkipTest
2009-03-26 21:40:29 +00:00
Benjamin Peterson
effa1dc709
** is required here
2009-03-26 21:30:54 +00:00
Benjamin Peterson
bf4464a38f
add missing import
2009-03-26 21:30:10 +00:00
Benjamin Peterson
a9b5be0c05
must pass argument to get expected behavior ;)
2009-03-26 21:11:16 +00:00
Benjamin Peterson
bec087f29d
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
2009-03-26 21:10:30 +00:00
Benjamin Peterson
ad57d97596
fix naming
2009-03-26 20:49:40 +00:00
Benjamin Peterson
888a39b54c
remove test_support.TestSkipped and just use unittest.SkipTest
2009-03-26 20:48:25 +00:00
Benjamin Peterson
21f6aac633
apply the second part of #4242 's patch; classify all the implementation details in test_descr
2009-03-26 20:17:27 +00:00
Benjamin Peterson
47d9738b0f
rename TestCase.skip() to skipTest() because it causes annoying problems with trial #5571
2009-03-26 20:05:50 +00:00
Benjamin Peterson
c3141a6e96
add some useful utilities for skipping tests with unittest's new skipping ability
...
most significantly apply a modified portion of the patch from #4242 with
patches for skipping implementation details
2009-03-26 19:58:18 +00:00
Benjamin Peterson
0ad9b7727d
add support for PyPy
2009-03-26 19:09:21 +00:00
Benjamin Peterson
94e4e2a7e5
roll old test in with new one
2009-03-26 18:58:30 +00:00
Benjamin Peterson
b457b89323
more and more implementations now support sys.subversion
2009-03-26 18:55:48 +00:00
Benjamin Peterson
f521b8c6d2
add much better tests for python version information parsing
2009-03-26 18:35:37 +00:00
Benjamin Peterson
c9301355d8
remove uneeded function
2009-03-26 16:32:23 +00:00
Raymond Hettinger
2dc90fdfaf
Separate initialization from clearing.
2009-03-25 22:41:32 +00:00
Benjamin Peterson
2f6f7436aa
this can be slightly less ugly
2009-03-25 21:42:51 +00:00