Michael W. Hudson
3fdd43ef35
Somehow (no idea how!) I missed half of patch #1005008 . Sorry about that.
2004-08-07 15:20:15 +00:00
Michael W. Hudson
09ad235f99
This is patch
...
[ 1005008 ] curses.wrapper should also forward keyword args
Plus my rewrite to use finally as opposed to painfully doing the
equivalent by hand.
2004-08-07 15:18:07 +00:00
Raymond Hettinger
654fcd531e
Exercise DocTestSuite's search for __test__.
2004-08-07 06:15:12 +00:00
Tim Peters
d1b7827216
Whitespace normalization.
2004-08-07 06:03:09 +00:00
Tim Peters
1e277ee3bd
Bug 772091: doctest.DocTestSuite does not support __test__
...
This got fixed "by magic" as part of the refactoring, but wasn't tested
as such. Now it is.
2004-08-07 05:37:52 +00:00
Raymond Hettinger
2a7dedef9e
SF bug #1004669 : Type returned from .keys() is not checked
2004-08-07 04:55:30 +00:00
Raymond Hettinger
61992efc4b
SF bug #1002530 : test_decimal fails if repeated
...
* Protect the pre-defined contexts by using a deepcopy() instead of copy().
* Micro-optimization: prefer x&1 over x%2
2004-08-06 23:42:16 +00:00
Tim Peters
19397e5ec5
Merging from tim-doctest-branch, which is now closed.
...
This primarily adds more powerful ways to work with unittest, including
spiffy support for building suites out of doctests in non-Python
"text files".
2004-08-06 22:02:59 +00:00
Brett Cannon
d09d9664e6
Changes the remote address used for tests in TimeoutTestCase from google.com to
...
python.org . This way the delay should be great enough for
testConnectTimeout() to pass even when one has a really fast Net connection
that allows connections faster than .001 seconds.
2004-08-06 04:30:46 +00:00
Marc-André Lemburg
c759f070ef
Added new codecs and aliases for ISO_8859-11, ISO_8859-16 and
...
TIS-620.
Closes SF bug #1001895 : Adding missing ISO 8859 codecs, especially Thai.
2004-08-05 12:43:30 +00:00
Anthony Baxter
ff347cadc4
release date
2004-08-05 07:21:01 +00:00
Tim Peters
9b625d3037
Example.__init__: this cannot use assert, because that fails to trigger
...
in a -O run, and so test_doctest was failing under -O. Simple cause,
simple cure.
2004-08-04 20:04:32 +00:00
Tim Peters
8485b56216
Edward Loper's cool and massive refactoring of doctest.py, merged from
...
the tim-doctest-merge-24a2 tag on the the tim-doctest-branch branch.
We did development on the branch in case it wouldn't land in time for
2.4a2, but the branch looked good: Edward's tests passed there, ditto
Python's tests, and ditto the Zope3 tests. Together, those hit doctest
heavily.
2004-08-04 18:46:34 +00:00
Michael W. Hudson
574a25127a
To ever run this test "you must import TestSkipped" from the right
...
place! (can that please be it for silly mistakes in this file? :-) I
know I started it, but...).
Also, rearrangements to run repeatedly.
2004-08-04 14:22:56 +00:00
Vinay Sajip
eb477d04f7
Updated Logger.log() docstring to clarify that lvl parameter should be an integer.
2004-08-04 08:38:08 +00:00
Vinay Sajip
6887c92b1e
Close handlers and tidy up loggers by removing closed handlers - to avoid problems when run twice (SF #1002537 )
2004-08-04 08:29:14 +00:00
Hye-Shik Chang
4189c643f8
Remove .width() and .iswide() from UserString as well.
2004-08-04 08:01:06 +00:00
Hye-Shik Chang
e9ddfbb412
SF #989185 : Drop unicode.iswide() and unicode.width() and add
...
unicodedata.east_asian_width(). You can still implement your own
simple width() function using it like this:
def width(u):
w = 0
for c in unicodedata.normalize('NFC', u):
cwidth = unicodedata.east_asian_width(c)
if cwidth in ('W', 'F'): w += 2
else: w += 1
return w
2004-08-04 07:38:35 +00:00
Hye-Shik Chang
b5047fd019
Add a workaround for a problem that UTF-8 strings can be corrupted
...
or broken by basic ctype functions in 4.4BSD descendants. This
will be fixed in their future development branches but they'll keep
the POSIX-incompatibility for their backward-compatiblities in near
future.
2004-08-04 06:33:51 +00:00
Tim Peters
6db15d7307
Whitespace normalization.
2004-08-04 02:36:18 +00:00
Tim Peters
cea2cc4a21
test_threadsignals is an expected skip on win32.
2004-08-04 02:32:03 +00:00
Tim Peters
81676dc520
To raise TestSkipped, you must import TestSkipped.
2004-08-04 02:30:45 +00:00
Tim Peters
3d3cfdb499
ihooks FancyModuleLoader.load_module()
...
imputils Importer._process_result():
remove name from modules dict if exec fails.
This is what all the builtin importers do now, new in 2.4.
2004-08-04 02:29:12 +00:00
Fred Drake
edcac8f416
make sure distutils logging is shut off in tests to avoid spurious output
2004-08-03 18:53:07 +00:00
Martin v. Löwis
9441c078cf
Patch #986929 : Add support for wish -sync and -use options.
2004-08-03 18:36:25 +00:00
Martin v. Löwis
b217cd802e
Wait for visibility before setting a grab. Fixes #946153 .
2004-08-03 18:36:25 +00:00
Fred Drake
f901abdd62
allow ctime(), gmtime(), and localtime() to take None as equivalent to an omitted arg
...
(closes SF bug #658254 , patch #663482 )
2004-08-03 17:58:55 +00:00
Fred Drake
d04573fef0
This allows additional commands to be provided for existing setup.py
...
scripts without modifying either the distutils installation or the
setup.py scripts of packages with which the new commands will be used.
Specifically, an option is added to distutils that allows additional
packages to be searched for command implementations in addition to
distutils.command. The additional packages can be specified on the
command line or via the installation or personal configuration files
already loaded by distutils.
For discussion, see the thread starting with:
http://mail.python.org/pipermail/distutils-sig/2004-August/004112.html
This closes SF patch #102241 .
2004-08-03 16:37:40 +00:00
Fred Drake
4818748b87
add missing import!
2004-08-03 16:14:13 +00:00
Fred Drake
4354ba3f76
avoid fragility: make sure POSIXLY_CORRECT is completely controlled
...
for the tests, and restored properly when done
2004-08-03 15:54:45 +00:00
Michael W. Hudson
34fba3b445
Add the same guard as test_signal.
2004-08-03 15:35:29 +00:00
Michael W. Hudson
43220ea26e
Argh! This was meant to be part of patch #960406 .
2004-08-03 14:37:14 +00:00
Martin v. Löwis
9513e34ac4
Patch #823072 : add option to NOT use ~/.netrc in nntplib.NNTP().
2004-08-03 14:36:32 +00:00
Martin v. Löwis
65a7975f16
Patch #994595 : Recognize Basic auth even if other schemes are offered.
...
Will backport to 2.3.
2004-08-03 12:59:55 +00:00
Martin v. Löwis
7db57b3b41
Patch #870382 : Automatically add msvcr71 to the list of libraries if
...
Python was built with VC 7.1.
2004-08-03 12:41:42 +00:00
Michael W. Hudson
61147f63d9
Check in my refleak hunting code.
...
It's not the 100% solution -- it may not even be the 90% solution -- but
it does seem to help.
2004-08-03 11:33:28 +00:00
Anthony Baxter
afd5ce1814
nice tests dont leave little suprises in the environ
2004-08-03 11:14:19 +00:00
Michael W. Hudson
5bf2516807
More "noone expected this to run twice"ness removal.
2004-08-03 11:14:09 +00:00
Michael W. Hudson
fe27ff8936
make this test work when run repeatedly.
2004-08-03 11:08:32 +00:00
Anthony Baxter
d2717217ae
Removed use of 'cgi.initlog()' - the first call to cgi.log is actually
...
an initlog() (and initlog()'s docstring says "don't use this"!) This
allows test_cgi to be run repeatedly in a single run of the interpreter.
2004-08-03 11:05:04 +00:00
Michael W. Hudson
fcc09bbad6
Don't exit test_main() with the lock 'done' held -- there's no cleaner
...
way to guarantee a deadlock on the next call!
If I've inadvertently done some damage to this test, sorry (but I don't
think I have).
2004-08-03 10:45:59 +00:00
Michael W. Hudson
3bfed9c225
Delete the items variable (and explain why).
2004-08-03 10:17:34 +00:00
Fred Drake
576298d3b2
- fix description of option table entries
...
- fix broken assert statement; should just raise
2004-08-02 17:58:51 +00:00
Andrew M. Kuchling
c75f11222c
Use isabs() in conditional, not abspath
2004-08-02 14:54:16 +00:00
Anthony Baxter
270fe88c68
and a unit test for the staticmethod-of-a-non-method failure just fixed
2004-08-02 11:34:10 +00:00
Raymond Hettinger
66bd233225
Completed the patch for Bug #215126 .
...
* Fixes an incorrect variable in a PyDict_CheckExact.
* Allow general mapping locals arguments for the execfile() function
and exec statement.
* Add tests.
2004-08-02 08:30:07 +00:00
Anthony Baxter
c2a5a63654
PEP-0318, @decorator-style. In Guido's words:
...
"@ seems the syntax that everybody can hate equally"
Implementation by Mark Russell, from SF #979728 .
2004-08-02 06:10:11 +00:00
Tim Peters
99d001ed0d
Removed reliance on damaged module object appearing in sys.modules
...
after a failed import.
This is the last checkin in the "change import failure semantics" series.
2004-08-02 03:59:57 +00:00
Tim Peters
08138fdc7a
New tests:
...
test_failing_import_sticks -- if an import raises an exception,
ensure that trying to import it again continues raising exceptions
test_failing_reload -- if a module loads OK, but a reload raises an
exception, ensure that the module is still in sys.modules, and
that its __dict__ reflects as much of the reload attempt as
succeeded. That doesn't seem like sane semantics, but it is
backward-compatible semantics <wink>.
2004-08-02 03:58:27 +00:00
Tim Peters
d464838ebc
Removed no-longer-needed convolutions to recover from damaged modules
...
getting left beyind in sys.modules.
2004-08-02 03:55:18 +00:00