Commit Graph

5743 Commits

Author SHA1 Message Date
Raymond Hettinger 2c8585b0af Register decimals as numbers.Number 2009-02-03 03:37:03 +00:00
Raymond Hettinger d6fc2623c5 Validate that __length_hint__ returns a usable result. 2009-02-03 02:23:19 +00:00
Raymond Hettinger b516370bcb Issue 1242657: list(obj) can swallow KeyboardInterrupt. 2009-02-02 21:50:13 +00:00
Guilherme Polo 3b331dd3ea Restore Tkinter.Tk._loadtk so this test doesn't fail for problems
related to ttk.
2009-02-01 02:56:16 +00:00
Gregory P. Smith de1a8b720a - Issue #5104: The socket module now raises OverflowError when 16-bit port and
protocol numbers are supplied outside the allowed 0-65536 range on bind()
  and getservbyport().
2009-01-31 22:57:30 +00:00
Mark Dickinson f709ab8526 Add an extra test for long <-> float hash equivalence. 2009-01-31 16:44:04 +00:00
Benjamin Peterson 1de05e9b2a check the errno in bad fd cases 2009-01-31 01:42:55 +00:00
Benjamin Peterson b3619be995 make _tkinter._flatten check the result of PySequence_Size for errors #3880 2009-01-30 02:24:39 +00:00
Antoine Pitrou 707c593761 Issue #2047: shutil.move() could believe that its destination path was
inside its source path if it began with the same letters (e.g. "src" vs.
"src.new").
2009-01-29 20:19:34 +00:00
Raymond Hettinger f779e6f51b Issue 4920: Fixed next() vs __next__() issues in the ABCs
for Iterator and MutableSet.  Also added thorough test for
required abstractmethods.
2009-01-28 23:02:26 +00:00
Guilherme Polo b1a98de25e Issue #5083: New 'gui' resource for regrtest. 2009-01-28 20:03:26 +00:00
Guilherme Polo 7a77ee88af * Renaming test_tk_* to test_ttk_* since that is what they are testing.
* Added ttk tests to the expected skips mapping just like where test_tcl
was expected to be skipped too.
2009-01-28 19:28:04 +00:00
Guilherme Polo cda93aafde Added the ttk module. See issue #2983: Ttk support for Tkinter. 2009-01-28 13:09:03 +00:00
Raymond Hettinger 560f9a8a90 Add more tests for the powerset() recipe. 2009-01-27 13:26:35 +00:00
Raymond Hettinger 2f6c2e03a8 More exhaustive combinatoric checks. 2009-01-27 10:36:14 +00:00
Raymond Hettinger f93f3032c6 Stronger tests for combinatoric relationships. 2009-01-27 09:52:35 +00:00
Raymond Hettinger 2976aaa396 Add tests to verify combinatoric relationships. 2009-01-27 09:33:06 +00:00
Raymond Hettinger d081abc8be Promote combinations_with_replacement() from a recipe to a regular itertool. 2009-01-27 02:58:49 +00:00
Brett Cannon 93881c6c58 Backport importlib in the form of providing importlib.import_module(). This has
been done purely to help transitions from 2.7 to 3.1.
2009-01-26 01:16:50 +00:00
Raymond Hettinger 68d919e4d6 Improved itertools recipe for generating powerset(). 2009-01-25 21:31:47 +00:00
Raymond Hettinger 2bcb8e9b0d Promote compress() from a recipe to being a regular itertool. 2009-01-25 21:04:14 +00:00
Tarek Ziadé 1af3b5a9a4 Issue #4863, removing remaining bits 2009-01-25 19:29:10 +00:00
Benjamin Peterson 78821ddf8c fix building the core with --disable-unicode
I changed some bytearray methods to use strings instead of unicode like bytes_repr
Also, bytearray.fromhex() can take strings as well as unicode
2009-01-25 17:15:10 +00:00
Mark Dickinson a3ecd2c668 Issue #1672332: Fix unpickling of subnormal floats, which was raising
ValueError on some platforms as a result of the platform strtod setting
errno on underflow.
2009-01-24 16:40:29 +00:00
Mark Dickinson c187d11af3 Issue #5025: Fix occasional test_kqueue failure on OS X. 2009-01-24 16:17:27 +00:00
Martin v. Löwis 0dfcfc8b59 Issue #4710: Extract directories properly in the zipfile module;
allow adding directories to a zipfile.
2009-01-24 14:00:33 +00:00
Kristján Valur Jónsson 89e759d462 Add a test for UNC import paths, see issue 3677 2009-01-24 10:52:26 +00:00
Raymond Hettinger 0a1f7b8f72 Tighten-up the docs for Counter(). 2009-01-21 23:12:51 +00:00
Raymond Hettinger 4571f347f9 Simplify explanation of multiset operations by removing restrictions on negative inputs. 2009-01-21 20:31:50 +00:00
Jesse Noller 7314b38168 Issue 5009: multiprocessing: failure in manager._debug_info() 2009-01-21 02:08:17 +00:00
Antoine Pitrou e741cc607c Issue #5008: When a file is opened in append mode with the new IO library,
do an explicit seek to the end of file (so that e.g. tell() returns the
file size rather than 0). This is consistent with the behaviour of the
traditional 2.x file object.
2009-01-21 00:45:36 +00:00
Raymond Hettinger 933d3a7a54 Issue 4998: __slots__ on Fractions was useless. 2009-01-20 20:34:19 +00:00
Benjamin Peterson e18ef194d9 allow unicode keyword arguments for the ** syntax #4978 2009-01-20 14:21:16 +00:00
Raymond Hettinger bad1eb2ff3 Build-outs for Counter() class:
* Constructor and update() support keyword args (like their dict counterparts).
* The 'del' statement no longer raises KeyError for missing values.
* Add multiset operations:  __add__, __sub__, __and__, __or__.
2009-01-20 01:19:26 +00:00
Benjamin Peterson 1f01cd013f I'm sick of these deprecations warnings in test_os 2009-01-19 21:08:37 +00:00
Benjamin Peterson 5539c78391 make bad file descriptor tests more robust 2009-01-19 17:37:42 +00:00
Jesse Noller 9a5b2ad38d Resolve issue 3321: (segfault) _multiprocessing.Connection() doesn't check handle 2009-01-19 15:12:22 +00:00
Kristján Valur Jónsson 2e659ce36f Issue 4957
Let os.ftruncate raise OSError like documented.
2009-01-19 13:10:27 +00:00
Benjamin Peterson 5848d1ff35 raise an OSError for invalid fds #4991 2009-01-19 00:08:08 +00:00
Benjamin Peterson 910f216260 fix test that wasn't working as expected #4990 2009-01-18 21:11:38 +00:00
Kristján Valur Jónsson 60e79ced94 issue 4293: make test_capi.py more robutst, it times out on some platforms, presumably waiting for threads. Lower the thread count to 16. 2009-01-18 10:58:44 +00:00
Jesse Noller 6ab22154dd Resolve issue 4449: AssertionError in mp_benchmarks.py 2009-01-18 02:45:38 +00:00
Benjamin Peterson 5e5fbb612d fix inspect.isclass() on instances with a custom __getattr__ #1225107 2009-01-17 22:27:54 +00:00
Benjamin Peterson f320c22701 trying to find some fpathconf() settings that all unixs support... 2009-01-17 04:39:05 +00:00
Benjamin Peterson b3af601b22 compare with == not is #4946 2009-01-16 02:55:24 +00:00
Kristján Valur Jónsson 4f69b7e33b Make all the invalid fd tests for os subject to the function being available. 2009-01-15 22:46:26 +00:00
Kristján Valur Jónsson 71ba215d6b Fix two test cases in test_os. ftruncate raises IOError unlike all the others which raise OSError. And close() on some platforms doesn't complain when given an invalid file descriptor. 2009-01-15 22:40:03 +00:00
Mark Dickinson 0e15182a38 Comment typo 2009-01-15 14:58:28 +00:00
Mark Dickinson e82cdae58f Issue #4397. Fix occasional test_socket failure on OS X. 2009-01-15 14:54:37 +00:00
Kristján Valur Jónsson 8adc0b54d4 Fix recently introduced test cases.
For datetime, gentoo didn't seem to mind the %e format for strftime.  So, we just excercise those instead making sure that we don't crash.
For test_os, two cases were incorrect.
2009-01-15 09:09:13 +00:00