Ezio Melotti
f10c400b91
Fix test failure in debug builds and add NEWS entry for r86908
2010-12-01 01:45:53 +00:00
Ezio Melotti
6090187656
#10535 : Enable silenced warnings in unittest by default
2010-12-01 00:56:10 +00:00
Raymond Hettinger
00f2f97dbd
Doc and docstring nits.
2010-12-01 00:47:56 +00:00
Brian Curtin
c0abc4e3a4
Fix #10591 . Fix test_os for refleak runs.
...
Split a common setUp/tearDown into the appropriate parts.
2010-11-30 23:46:54 +00:00
Raymond Hettinger
697ce95931
Add link to specification.
2010-11-30 20:32:59 +00:00
Raymond Hettinger
7496b4171e
Add example, tighten text, and minor clean-ups.
2010-11-30 19:15:45 +00:00
Brian Curtin
f498b754ed
Actually fix what I attempted to fix in r86888...
2010-11-30 15:54:04 +00:00
Nick Coghlan
9fc443cf59
Issue 9873: the URL parsing functions now accept ASCII encoded byte sequences in addition to character strings
2010-11-30 15:48:08 +00:00
Brian Curtin
43f0c27be7
Try to fix failures on platforms that can't encode the test characters.
...
Skip the test if encoding fails.
2010-11-30 15:40:04 +00:00
Raymond Hettinger
5e20bab422
Neaten-up a bit.
2010-11-30 07:13:04 +00:00
Nick Coghlan
7921b9f210
Issue 10220: switch to using string constants rather than integers for inspect.getgeneratorstate() return values and make debugging friendly str() and repr() for generator states a requirement in the test suite
2010-11-30 06:36:04 +00:00
Nick Coghlan
234515afe5
Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple.
2010-11-30 06:19:46 +00:00
Alexander Belopolsky
ff27ee0b40
Issue #10572 : Moved json tests to Lib/test/json_tests.
...
Approved by Raymond Hettinger.
2010-11-30 03:03:30 +00:00
Raymond Hettinger
69b34bfe9c
Issue #10323 : Predictable final state for slice().
2010-11-30 02:49:29 +00:00
Georg Brandl
ac9a2bb067
Use booleans where applicable.
2010-11-29 20:19:15 +00:00
Georg Brandl
2660747a0b
Code style cleanup in bdb.
2010-11-29 20:12:24 +00:00
Senthil Kumaran
3d0f388a6b
Remove the comment used while testing.
2010-11-29 12:42:29 +00:00
Senthil Kumaran
6f1070485f
Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
...
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.
2010-11-29 11:54:17 +00:00
Raymond Hettinger
ead22227cc
Issue #10565 : Iterator ABC should require both __next__ and __iter__.
2010-11-29 03:56:12 +00:00
Ezio Melotti
263cbdfdfb
Use assertCountEqual instead of assertItemsEqual
2010-11-29 02:02:10 +00:00
Raymond Hettinger
40b8cf528f
Do not add an obsolete unittest name to Py3.2.
2010-11-29 01:38:25 +00:00
Brian Curtin
fc889c48ed
Fix for #8879 .
...
Amaury noticed that this was originally written in a way that would fail on
names that can't be encoded with the mbcs codec. Restructured the function
to work with wide names first then narrow names second, to fall in line
with the way other functions are written in posixmodule.c.
2010-11-28 23:59:46 +00:00
Antoine Pitrou
e71362d3de
Issue #10518 : Bring back the callable() builtin.
...
Approved by Guido (BDFL) and Georg (RM).
2010-11-27 22:00:11 +00:00
Raymond Hettinger
6e165b30de
Issue 10242: unittest.assertItemsEqual makes too many assumptions.
2010-11-27 09:31:37 +00:00
Raymond Hettinger
db213a297d
Replace _nbits() with int.bit_length().
2010-11-27 08:09:40 +00:00
Alexander Belopolsky
1f75f5d506
Fixed deprecation warnings.
2010-11-26 18:51:39 +00:00
Georg Brandl
9aed6cca89
Modernize code in effective().
2010-11-26 12:05:27 +00:00
Éric Araujo
31717e8a55
#10453 follow-up: Fix test_quiet on Windows, thanks to Stephan Krah.
2010-11-26 00:39:59 +00:00
Eric Smith
984bb58000
Issue #7094 : Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon.
2010-11-25 16:08:06 +00:00
Raymond Hettinger
5fa40c01ad
Clean-up docstring, comments, and whitespace.
2010-11-25 08:11:57 +00:00
Terry Reedy
99f9637de8
Issue 2986: Add autojunk paramater to SequenceMatcher to turn off heuristic. Patch by Terry Reedy, Eli Bendersky, and Simon Cross
2010-11-25 06:12:34 +00:00
Barry Warsaw
bd86301070
sys.abiflags is not defined on all platforms.
2010-11-25 03:46:44 +00:00
Barry Warsaw
d5eaa5fb5a
sys.abiflags may not be defined on all platforms.
2010-11-25 01:34:47 +00:00
Brian Curtin
1b9df39620
Fix #8879 . Add os.link support to Windows.
...
Additionally, the st_ino attribute of stat structures was not being filled
in. This was left out of the fix to #10027 and was noticed due to
test_tarfile failing when applying the patch for this issue. An earlier
version of the fix to #10027 included st_ino, but that attribute got lost
in the shuffle of a few review/fix cycles. All tests pass.
2010-11-24 20:24:31 +00:00
Barry Warsaw
14d98ac31b
Final patch for issue 9807.
2010-11-24 19:43:47 +00:00
Barry Warsaw
fdba067213
Remove unnecessary import.
2010-11-24 18:18:21 +00:00
Terry Reedy
5e438570cb
Issue 9222 Fix filetypes for open dialog
2010-11-23 06:01:31 +00:00
Łukasz Langa
a9f054b423
zipfile: remove remaining ResourceWarnings
2010-11-23 00:15:02 +00:00
Łukasz Langa
e94980a64f
Issue #9846 : ZipExtFile provides no mechanism for closing the underlying file object
2010-11-22 23:31:26 +00:00
Alexander Belopolsky
022f049fed
Issue #6878 : Fixed return type of tkinter methods documented to return lists.
2010-11-22 19:40:51 +00:00
Antoine Pitrou
7744e2ae5e
Fix test_multiprocessing when ctypes isn't available
2010-11-22 16:26:21 +00:00
Antoine Pitrou
0662bc297a
Fix tests when ctypes isn't available
2010-11-22 16:19:04 +00:00
Ezio Melotti
2baf1a69f4
#9424 : add a DeprecationWarning for assertEquals, assertNotEquals, assertAlmostEquals, assertNotAlmostEquals, and assert_
2010-11-22 12:56:58 +00:00
Michael Foord
b87ef8f872
Improve test for 'python -m unittest' launching test discovery
2010-11-22 10:41:27 +00:00
Martin v. Löwis
5cbc71e50a
Issue #10459 : Update CJK character names to Unicode 6.0.
2010-11-22 09:00:02 +00:00
Senthil Kumaran
c295862ce0
Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does not
...
starts with one. This behavior is exhibited by browser and other clients.
2010-11-22 04:48:26 +00:00
Éric Araujo
5cb823d353
Fix one compileall test ( #10453 ). Patch by Michele Orrù.
2010-11-22 02:42:43 +00:00
Éric Araujo
300623d9b2
r84925 followup: add docstring for get_makefile_filename (+PEP 257 fixes)
2010-11-22 01:19:20 +00:00
Brian Curtin
2a0be783fe
Quote the paths in the event that they contain spaces.
2010-11-22 00:01:01 +00:00
Brian Curtin
f991642efe
Fix #6378 . Start IDLE using the proper version of Python based on the directory
...
tree that idle.bat resides in.
Works with any/all versions of Python installed concurrently.
2010-11-21 23:45:10 +00:00