gpgme/lang/python/tests
Justus Winter 70a3be27a5 python: Handle slight differences between Python 2 and 3.
* lang/python/helpers.c (pyDataWriteCb): Handle Python integers being
returned on Python 2.
(pyDataSeekCb): Likewise.
* lang/python/pyme/core.py (Data.__init__): Fix testing for string
argument.
(Data.new_from_filepart): Likewise.
* lang/python/pyme/util.py (is_a_string): New function.
* lang/python/tests/t-encrypt-large.py (read_cb): Force evaluation of
generator.
* lang/python/tests/t-idiomatic.py: Partly skip test on Python 2.
* lang/python/tests/t-verify.py (check_result): Here, the difference
between 2 and 3 really matters.  We cannot change the char *
conversion in Python 2 without breaking all existing applications, and
using bytestrings in Python 3 would be very inconvenient.

Signed-off-by: Justus Winter <justus@g10code.com>
2016-09-13 13:29:43 +02:00
..
encrypt-only.asc python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
final.py python: Fix distcheck. 2016-07-07 14:10:36 +02:00
initial.py python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
Makefile.am Prepend LD_LIBRARY_PATH for python tests 2016-08-08 15:04:01 +02:00
sign-only.asc python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
support.py python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
t-callbacks.py python: Implement data callbacks. 2016-05-27 14:04:28 +02:00
t-data.py python: Port more tests. 2016-05-27 17:24:12 +02:00
t-decrypt-verify.py python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
t-decrypt.py python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
t-edit.py python: Improve support for edit callbacks. 2016-05-24 13:13:35 +02:00
t-encrypt-large.py python: Handle slight differences between Python 2 and 3. 2016-09-13 13:29:43 +02:00
t-encrypt-sign.py python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
t-encrypt-sym.py python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
t-encrypt.py python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
t-export.py python: Port more tests. 2016-05-23 15:43:55 +02:00
t-file-name.py python: Port more tests. 2016-05-27 17:24:12 +02:00
t-idiomatic.py python: Handle slight differences between Python 2 and 3. 2016-09-13 13:29:43 +02:00
t-import.py python: Port more tests. 2016-07-12 18:34:12 +02:00
t-keylist.py python: Add a nicer interface to list keys. 2016-08-03 16:32:30 +02:00
t-protocol-assuan.py python: Support the Assuan engine. 2016-07-28 14:23:07 +02:00
t-sig-notation.py tests: Make signature notation test compatible with older GnuPGs. 2016-09-12 14:56:07 +02:00
t-sign.py python: Drop superfluous imports and trim public interface. 2016-07-28 16:50:02 +02:00
t-signers.py python: Drop superfluous imports and trim public interface. 2016-07-28 16:50:02 +02:00
t-trustlist.py python: Port more tests. 2016-07-12 18:34:12 +02:00
t-verify.py python: Handle slight differences between Python 2 and 3. 2016-09-13 13:29:43 +02:00
t-wait.py python: Improve and test Context.wait. 2016-05-24 18:00:16 +02:00
t-wrapper.py python: Share generated methods between objects. 2016-05-12 18:29:04 +02:00