cpython/Lib/ctypes/test
Christian Heimes 969fe57baa Merged revisions 60245-60277 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r60246 | guido.van.rossum | 2008-01-24 18:58:05 +0100 (Thu, 24 Jan 2008) | 2 lines

  Fix test67.py from issue #1303614.
........
  r60248 | raymond.hettinger | 2008-01-24 19:05:54 +0100 (Thu, 24 Jan 2008) | 1 line

  Clean-up and speed-up code by accessing numerator/denominator directly.  There's no reason to enforce readonliness
........
  r60249 | raymond.hettinger | 2008-01-24 19:12:23 +0100 (Thu, 24 Jan 2008) | 1 line

  Revert 60189 and restore performance.
........
  r60250 | guido.van.rossum | 2008-01-24 19:21:02 +0100 (Thu, 24 Jan 2008) | 5 lines

  News about recently fixed crashers:
  - A few crashers fixed: weakref_in_del.py (issue #1377858);
    loosing_dict_ref.py (issue #1303614, test67.py);
    borrowed_ref_[34].py (not in tracker).
........
  r60252 | thomas.heller | 2008-01-24 19:36:27 +0100 (Thu, 24 Jan 2008) | 7 lines

  Use a PyDictObject again for the array type cache; retrieving items
  from the WeakValueDictionary was slower by nearly a factor of 3.

  To avoid leaks, weakref proxies for the array types are put into the
  cache dict, with weakref callbacks that removes the entries when the
  type goes away.
........
  r60253 | thomas.heller | 2008-01-24 19:54:12 +0100 (Thu, 24 Jan 2008) | 2 lines

  Replace Py_BuildValue with PyTuple_Pack because it is faster.
  Also add a missing DECREF.
........
  r60254 | raymond.hettinger | 2008-01-24 20:05:29 +0100 (Thu, 24 Jan 2008) | 1 line

  Add support for trunc().
........
  r60255 | thomas.heller | 2008-01-24 20:15:02 +0100 (Thu, 24 Jan 2008) | 5 lines

  Invert the checks in get_[u]long and get_[u]longlong.  The intent was
  to not accept float types; the result was that integer-like objects
  were not accepted.

  Ported from release25-maint.
........
  r60256 | raymond.hettinger | 2008-01-24 20:30:19 +0100 (Thu, 24 Jan 2008) | 1 line

  Add support for int(r) just like the other numeric classes.
........
  r60263 | raymond.hettinger | 2008-01-24 22:23:58 +0100 (Thu, 24 Jan 2008) | 1 line

  Expand tests to include nested graph structures.
........
  r60264 | raymond.hettinger | 2008-01-24 22:47:56 +0100 (Thu, 24 Jan 2008) | 1 line

  Shorter pprint's for empty sets and frozensets.  Fix indentation of frozensets.  Add tests including two complex data structures.
........
  r60265 | amaury.forgeotdarc | 2008-01-24 23:51:18 +0100 (Thu, 24 Jan 2008) | 14 lines

  #1920: when considering a block starting by "while 0", the compiler optimized the
  whole construct away, even when an 'else' clause is present::

      while 0:
          print("no")
      else:
          print("yes")

  did not generate any code at all.

  Now the compiler emits the 'else' block, like it already does for 'if' statements.

  Will backport.
........
  r60266 | amaury.forgeotdarc | 2008-01-24 23:59:25 +0100 (Thu, 24 Jan 2008) | 2 lines

  News entry for r60265 (Issue 1920).
........
  r60269 | raymond.hettinger | 2008-01-25 00:50:26 +0100 (Fri, 25 Jan 2008) | 1 line

  More code cleanup.  Remove unnecessary indirection to useless class methods.
........
  r60270 | raymond.hettinger | 2008-01-25 01:21:54 +0100 (Fri, 25 Jan 2008) | 1 line

  Add support for copy, deepcopy, and pickle.
........
  r60271 | raymond.hettinger | 2008-01-25 01:33:45 +0100 (Fri, 25 Jan 2008) | 1 line

  Mark todos and review comments.
........
  r60272 | raymond.hettinger | 2008-01-25 02:13:12 +0100 (Fri, 25 Jan 2008) | 1 line

  Add one other review comment.
........
  r60273 | raymond.hettinger | 2008-01-25 02:23:38 +0100 (Fri, 25 Jan 2008) | 1 line

  Fix-up signature for approximation.
........
  r60274 | raymond.hettinger | 2008-01-25 02:46:33 +0100 (Fri, 25 Jan 2008) | 1 line

  More design notes
........
  r60276 | neal.norwitz | 2008-01-25 07:37:23 +0100 (Fri, 25 Jan 2008) | 6 lines

  Make the test more robust by trying to reconnect up to 3 times
  in case there were transient failures.  This will hopefully silence
  the buildbots for this test.  As we find other tests that have a problem,
  we can fix with a similar strategy assuming it is successful.  It worked
  on my box in a loop for 10+ runs where it would have an exception otherwise.
........
  r60277 | neal.norwitz | 2008-01-25 09:04:16 +0100 (Fri, 25 Jan 2008) | 4 lines

  Add prototypes to get the mathmodule.c to compile on OSF1 5.1 (Tru64)
  and eliminate a compiler warning in floatobject.c.  There might be
  a better way to go about this, but it should be good enough for now.
........
2008-01-25 11:23:10 +00:00
..
__init__.py dict.keys() returns an iterable, convert it into a list. 2007-07-11 14:49:26 +00:00
runtests.py Copy ctypes-0.9.9.4 Python modules from external into the trunk. 2006-03-08 19:56:54 +00:00
test_anon.py Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
test_array_in_pointer.py Merging the py3k-pep3137 branch back into the py3k branch. 2007-11-06 21:34:58 +00:00
test_arrays.py Merged revisions 60001,60003-60004,60008 via svnmerge from 2008-01-17 18:46:55 +00:00
test_as_parameter.py Fix various spots where int/long and str/unicode unification 2007-05-03 21:05:51 +00:00
test_bitfields.py SF patch 1631942 by Collin Winter: 2007-01-10 16:19:56 +00:00
test_buffers.py Patch #1318 by Amaury Forgeot d'Arc. 2007-10-24 18:41:19 +00:00
test_bytes.py c_char, c_char_p objects and c_char array structure fields return 2007-07-13 12:52:51 +00:00
test_byteswap.py Merging the py3k-pep3137 branch back into the py3k branch. 2007-11-06 21:34:58 +00:00
test_callbacks.py Removed the API to create unbound methods and simplified the API for bound methods. The signature is PyMethod_New(func, instance). 2007-11-27 10:40:20 +00:00
test_cast.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
test_cfuncs.py Merged revisions 58742-58816 via svnmerge from 2007-11-02 23:46:40 +00:00
test_checkretval.py Merged revisions 55325-55327 via svnmerge from 2007-05-14 22:51:27 +00:00
test_delattr.py Merged revisions 59541-59561 via svnmerge from 2007-12-19 02:07:34 +00:00
test_errcheck.py Copy ctypes-0.9.9.4 Python modules from external into the trunk. 2006-03-08 19:56:54 +00:00
test_find.py Merged revisions 56301-56442 via svnmerge from 2007-07-18 18:15:48 +00:00
test_funcptr.py Merged revisions 59921-59932 via svnmerge from 2008-01-12 19:39:10 +00:00
test_functions.py Merged revisions 58742-58816 via svnmerge from 2007-11-02 23:46:40 +00:00
test_incomplete.py Copy ctypes-0.9.9.4 Python modules from external into the trunk. 2006-03-08 19:56:54 +00:00
test_init.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
test_integers.py Copy ctypes-0.9.9.4 Python modules from external into the trunk. 2006-03-08 19:56:54 +00:00
test_internals.py Changes in anticipation of stricter str vs. bytes enforcement. 2007-08-27 17:23:59 +00:00
test_keeprefs.py Fix a ctypes test. 2007-07-12 12:05:40 +00:00
test_libc.py Patch #1318 by Amaury Forgeot d'Arc. 2007-10-24 18:41:19 +00:00
test_loading.py Remove spurious (and unneeded) import of StringIO. 2007-08-10 01:01:28 +00:00
test_macholib.py Raise statement normalization in Lib/ctypes/. 2007-08-30 03:47:13 +00:00
test_memfunctions.py Patch #1318 by Amaury Forgeot d'Arc. 2007-10-24 18:41:19 +00:00
test_numbers.py Merged revisions 60245-60277 via svnmerge from 2008-01-25 11:23:10 +00:00
test_objects.py c_char, c_char_p objects and c_char array structure fields return 2007-07-13 12:52:51 +00:00
test_parameters.py c_char_p.from_param accepts bytes. Fix test_parameters. 2007-07-12 19:33:24 +00:00
test_pointers.py Rip out 'long' and 'L'-suffixed integer literals. 2007-01-15 16:59:06 +00:00
test_prototypes.py A 'PyObject *' parameter in PyErr_Format must use %S parameter, not %s. 2007-10-24 19:37:27 +00:00
test_python_api.py Patch #1318 by Amaury Forgeot d'Arc. 2007-10-24 18:41:19 +00:00
test_random_things.py Raise statement normalization in Lib/ctypes/. 2007-08-30 03:47:13 +00:00
test_refcounts.py Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
test_repr.py Merged revisions 57778-58052 via svnmerge from 2007-09-08 17:39:28 +00:00
test_returnfuncptrs.py Patch #1318 by Amaury Forgeot d'Arc. 2007-10-24 18:41:19 +00:00
test_simplesubclasses.py Restructure comparison dramatically. There is no longer a default 2006-08-24 00:41:19 +00:00
test_sizes.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
test_slicing.py Merging the py3k-pep3137 branch back into the py3k branch. 2007-11-06 21:34:58 +00:00
test_stringptr.py Fix the ctypes tests. Patch from Victor Stinner. He writes: 2007-08-08 18:47:32 +00:00
test_strings.py Patch #1318 by Amaury Forgeot d'Arc. 2007-10-24 18:41:19 +00:00
test_struct_fields.py Copy ctypes-0.9.9.4 Python modules from external into the trunk. 2006-03-08 19:56:54 +00:00
test_structures.py Merged revisions 60001,60003-60004,60008 via svnmerge from 2008-01-17 18:46:55 +00:00
test_unaligned_structures.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
test_unicode.py Patch #1318 by Amaury Forgeot d'Arc. 2007-10-24 18:41:19 +00:00
test_values.py Add a comment to explain why we have to restore the original value. 2007-12-12 20:01:44 +00:00
test_varsize_struct.py Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
test_win32.py Merged revisions 56301-56442 via svnmerge from 2007-07-18 18:15:48 +00:00