summaryrefslogtreecommitdiff
path: root/test/cross-test-client.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for Python 2Simon McVittie2021-09-151-15/+1
| | | | | | | | Python 2 reached EOL on 2020-01-01, and the latest version of AX_PYTHON_DEVEL breaks the build with Python 2. This seems as good a time as any to drop compatibility. Signed-off-by: Simon McVittie <smcv@collabora.com>
* tests: Use gi.repository.GLib to avoid deprecation warningsSimon McVittie2020-11-231-3/+3
| | | | | | | Back in the days of PyGTK, there was only the gobject module, containing bindings for both GLib and GObject. This is no longer the case. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add clearer licensing information in SPDX formatSimon McVittie2019-07-151-0/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* cross-test-client: Wait until default method timeout for Exit()Simon McVittie2018-05-091-2/+0
| | | | | | | | On a slow machine under load, communication might legitimately take time. After the default method-call timeout (25 seconds) we'll go into quit_error_handler() and exit anyway. Bug-Debian: https://bugs.debian.org/898158
* Make all test scripts properly executableSimon McVittie2016-02-221-0/+2
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* Add support for skipping tests, and use itSimon McVittie2013-05-081-1/+4
| | | | | Now that Python 2.6 isn't a supported version in Debian, it doesn't get a gi module, but we can still get some minimal test coverage.
* Do not allow Byte(unicode(x)) (i.e. Byte(str(x)) in Python 3)Simon McVittie2012-01-111-9/+9
| | | | | Unicode strings aren't bytestrings, so there's no obvious meaning for the byte value of a Unicode string of length 1.
* Re-enable previously disabled test.Barry Warsaw2011-12-151-1/+2
|
* - Added back the missing PY3PORT.rst file, with updates.Barry Warsaw2011-12-151-3/+6
| | | | | | | - Disallow appending unicode objects with 'y' (bytes) signatures. This now requires either a bytes object or an integer. Update the tests to reflect - this change. - Fix broken __all__ in Python 3.
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-151-43/+64
|
* Use Python 3 syntax to catch exceptionsBarry Warsaw2011-12-131-4/+4
| | | | Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* tests/cross-test-*: don't use deprecated sets moduleSimon McVittie2010-02-181-2/+1
| | | | set() has been a built-in since 2.4, and we don't support older versions.
* Relicense Collabora code under the MIT/X11 license proposed for dbus core, ↵Simon McVittie2007-09-271-13/+17
| | | | removing all references to the LGPL as a result
* Avoid deprecated API in cross-testSimon McVittie2007-08-011-3/+2
|
* Actually commit the numerous copyright-statement changes.Simon McVittie2007-02-071-4/+4
|
* test/, include/: remove accidentally duplicated lines from license statementSimon McVittie2007-01-251-2/+0
|
* Comment on why we're putting the client at path /TestSimon McVittie2007-01-161-0/+2
|
* Test UTF8String as well as StringSimon McVittie2006-11-141-0/+1
|
* Update tests for the new variant APISimon McVittie2006-11-141-32/+104
|
* Revert switch from Byte being an int subclass to a str subclass following ↵Simon McVittie2006-11-021-2/+2
| | | | | | | discussion with J5. Switching Byte to be a single-character string is arguably more Pythonic, but needlessly breaks API.
* test/cross-test-client.py: Add more workarounds for odd dbus-java behaviour. ↵Simon McVittie2006-10-021-21/+54
| | | | Compare InvertMapping results better.
* Make cross-test stricter by including extreme values for integers, etc.Simon McVittie2006-09-291-11/+23
|
* test/cross-test-client.py, test/cross-test-server.py: Start to fix for ↵Simon McVittie2006-09-281-57/+124
| | | | | | | | | | interop with dbus-java: * Don't assume we have introspection data - only call methods with correctly typed parameters * Make InvertMapping check order-independent * Make signal test not fail if the Triggered signal is meant to come from /Test * Use logging rather than sys.stderr
* test/cross-test-client.py, test/cross-test-server.py: Output in the same ↵Simon McVittie2006-09-281-9/+9
| | | | format dbus-java does (the <> in the specification were not meant to be literal, apparently)
* Add copyright, AFL2.1, GPL2 notices, which might even be correct...Simon McVittie2006-09-271-0/+20
| | | | | | | | | The lists of copyright holders are derived from the D-Bus CVS changelog: I've erred on the side of adding people to the list rather than not. For now I've assumed that J5's contributions are owned by Red Hat, Collabora people's contributions (Rob McQueen, Rob Taylor, Ole Andre Ravnaas, myself) are owned by Collabora and everything else is owned by the author.
* Throughout dbus-python: Use the C implementation.Simon McVittie2006-09-261-27/+28
| | | | | | Add document API_CHANGES.txt listing visible API changes. Add more test cases, for low-level Python <-> D-Bus type mappings. Amend existing test cases to cope with the API changes.
* Add a fairly simplistic implementation of the D-Bus bindings test suite.Simon McVittie2006-09-061-0/+185
Currently only tested with Python <-> Python, and some of the Byte tests fail until I get an opinion from the list on whether the API should be in terms of strings-of-length-1, ints, or both.