summaryrefslogtreecommitdiff
path: root/test/test-standalone.py
Commit message (Collapse)AuthorAgeFilesLines
* Add basic test coverage for UnixFdSimon McVittie2019-09-021-0/+31
| | | | 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>
* Remove remaining support for Ubuntu 14.04 'trusty'Simon McVittie2019-07-151-1/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Drop support for Python 2.6, along with several workaroundsSimon McVittie2016-08-111-32/+14
| | | | | | It hasn't had security support for about 3 years. Signed-off-by: Simon McVittie <smcv@debian.org>
* Use TAP syntax for all directly-run testsSimon McVittie2016-08-111-1/+9
| | | | | | | For now this means that skipped tests will be reported as passed. This will be corrected in the next commit. Signed-off-by: Simon McVittie <smcv@debian.org>
* unicode test: cope with Python 2.6 as provided on travis-ciSimon McVittie2016-03-061-1/+4
| | | | | | Python 2.6 didn't allow struct.pack(u'...', ...). Signed-off-by: Simon McVittie <smcv@debian.org>
* Fix Unicode tests on narrow Python buildsSimon McVittie2016-03-051-10/+29
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=57140 Signed-off-by: Simon McVittie <smcv@debian.org>
* Add a regression test for the version numberingSimon McVittie2016-03-051-0/+14
| | | | | | | Now that dbus.__version__ and dbus.version exist even in uninstalled builds, we can do this. Signed-off-by: Simon McVittie <smcv@debian.org>
* Use non-recursive make for tests, and make them into installed-testsSimon McVittie2016-01-201-12/+17
|
* utf8 test: pass when used with dbus 1.6.10, 1.7.2Simon McVittie2013-05-081-16/+25
| | | | We used to reject noncharacters, but now we accept them.
* fd.o #40817: validate UTF-8 according to the same rules as libdbusdbus-python-1.1.1Simon McVittie2012-06-251-1/+58
|
* Py3: correctly guess the signature of ObjectPath(...) and Signature(...)Simon McVittie2012-06-051-0/+2
| | | | | | | | | | | | Under Python 2, ObjectPath and Signature are subtypes of str (= bytes), and the existing type-guessing worked. The type-guessing code assumed that all unicode objects were just strings, but that assumption became false in the Python 3 port: ObjectPath and Signature are still subtypes of str, but str now means unicode, not bytes. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50740
* Test behaviour of various Message methodsSimon McVittie2012-01-111-0/+54
|
* Do not allow Byte(unicode(x)) (i.e. Byte(str(x)) in Python 3)Simon McVittie2012-01-111-7/+31
| | | | | Unicode strings aren't bytestrings, so there's no obvious meaning for the byte value of a Unicode string of length 1.
* Fix the match rule semantics so that a match rule of "arg0='/'" does not matchBarry Warsaw2011-12-151-0/+19
| | | | object paths in Python3, as per Simon's review comments.
* - Added back the missing PY3PORT.rst file, with updates.Barry Warsaw2011-12-151-4/+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-64/+109
|
* First round of PyInt -> PyLong changes. These are only compatible with PythonBarry Warsaw2011-12-141-3/+4
| | | | | | | 2, since there are still some unconditional PyInt calls, which are not valid in Python 3. However, it lays the framework for conditionalizing on Python 3 and using only PyLong in that case. Where it doesn't matter, PyLong is used unconditionally.
* fd.o #21831: deserialize empty ByteArray objects correctlySimon McVittie2010-11-231-0/+7
| | | | | | For some reason libdbus gives us NULL instead of a pointer to a zero-length object (i.e. any random place in the message would do), which Py_BuildValue doesn't interpret the way we'd want it to.
* Relicense Collabora code under the MIT/X11 license proposed for dbus core, ↵Simon McVittie2007-09-271-14/+18
| | | | removing all references to the LGPL as a result
* 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
|
* Ensure we put the right number of items in a struct or message and add test ↵Simon McVittie2007-01-161-1/+43
| | | | | | | | | | | cases. This avoids us getting kicked off the bus when trying to put the wrong number of things in a struct - this used to happen, but was masked by the fact that the tests ran with service activation, so the service was just killed and reactivated. Forthcoming changes to get_object make this automatic reactivation not happen (messages will be directed to the unique name by default, so stateful communication can work).
* Add special case to serialization: objects with a __dbus_object_path__ ↵Simon McVittie2007-01-101-0/+15
| | | | attribute are serialized as that object path. Add that attribute to ProxyObject, dbus.Interface and dbus.service.Object.
* When putting a ByteArray into a variant array, serialise it as an array of ↵Simon McVittie2007-01-091-1/+2
| | | | variants containing byte, not an array of variants containing string
* Switch to autotools and test with Python 2.5 as well as 2.4.Simon McVittie2006-12-181-10/+15
| | | | | | | | | | | | | | In the process: HACKING.txt: update include/dbus-python.h: add some typedefs to make it saner bus.c, conn.c, conn-methods.c: further alter docstrings to keep epydoc happy exceptions.c: create exceptions in a more longwinded way for Python 2.5 compatibility message-get-args.c, bus/__init__.py: tweak docstrings dbus/introspect_parser.py: make docstring valid reStructuredText run-test.sh: simplify, since configure now does some of the work test/*.py: use paths from run-test.sh, cope with out-of-tree builds test-standalone.py: carry out additional sanity checks
* Stop asserting that dbus.Struct(()) worksSimon McVittie2006-12-051-2/+2
|
* Update tests for the new variant APISimon McVittie2006-11-141-86/+92
|
* Revert switch from Byte being an int subclass to a str subclass following ↵Simon McVittie2006-11-021-2/+3
| | | | | | | discussion with J5. Switching Byte to be a single-character string is arguably more Pythonic, but needlessly breaks API.
* test/test-standalone.py: Test API guarantee that integer types subclass int ↵Simon McVittie2006-10-051-0/+8
| | | | or long
* Add copyright, AFL2.1, GPL2 notices, which might even be correct...Simon McVittie2006-09-271-0/+21
| | | | | | | | | 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.
* Add a test case for the various options to get_args_list.Simon McVittie2006-09-271-21/+91
| | | | Fix ByteArray unmarshalling.
* Throughout dbus-python: Use the C implementation.Simon McVittie2006-09-261-0/+126
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.