gpgme/lang/python/tests
Tobias Mueller 3cf9aedc92
python: Default whence argument for Data() to SEEK_SET.
* lang/python/gpgme.i: copied signature from gpgme.h and defaulted the
value to SEEK_SET.
* lang/python/tests/t-data.py: Added a test for no second argument
--

Having to import the os package when wanting to read a Data object is a
slight annoyance. With SWIG, we can define default parameters. This
change defaults the whence argument to SEEK_SET which is how StringIO
and BytesIO behave.

Signed-off-by: Tobias Mueller <muelli@cryptobitch.de>
2017-12-04 08:10:06 +01:00
..
encrypt-only.asc python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
final.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
initial.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
Makefile.am tests: Make portability fix. 2017-11-21 15:35:10 +09:00
run-tests.py python: fix run-tests missing python_libdir 2017-04-11 10:16:47 +02:00
sign-only.asc python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
support.py python: Skip TOFU test if not supported by GnuPG. 2017-04-11 12:24:41 +02:00
t-callbacks.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-data.py python: Default whence argument for Data() to SEEK_SET. 2017-12-04 08:10:06 +01:00
t-decrypt-verify.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
t-decrypt.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
t-edit.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-encrypt-large.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
t-encrypt-sign.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
t-encrypt-sym.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-encrypt.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
t-export.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
t-file-name.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-idiomatic.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-import.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
t-keylist-from-data.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-keylist.py python: Improve keylist test. 2017-08-21 10:54:10 +02:00
t-protocol-assuan.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-quick-key-creation.py python: Skip tests if GnuPG is too old. 2017-03-20 16:20:02 +01:00
t-quick-key-manipulation.py python: Skip TOFU test if not supported by GnuPG. 2017-04-11 12:24:41 +02:00
t-quick-key-signing.py python: Skip tests if GnuPG is too old. 2017-03-20 16:20:02 +01:00
t-quick-subkey-creation.py python: Fix teardown of ephemeral contexts. 2017-02-17 12:18:56 +01:00
t-sig-notation.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-sign.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
t-signers.py python: Remove superfluous initialization. 2017-03-20 16:07:07 +01:00
t-trustlist.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-verify.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-wait.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00
t-wrapper.py python: Fix skipping tests if running with GnuPG < 2.1.12. 2017-03-30 15:06:10 +02:00