diff options
author | Simon McVittie <smcv@collabora.com> | 2021-07-19 15:14:38 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-07-19 15:14:38 +0100 |
commit | fbcee1081a1644a84b6f53795493327008a582c8 (patch) | |
tree | 77a94217baa61755aacb615ac091f241a0353c6d | |
parent | 4412ceb80d58ca200c32af282f3eadca6f29f9bb (diff) | |
download | dbus-python-fbcee1081a1644a84b6f53795493327008a582c8.tar.gz |
tests: Exercise negative variant_level for UnixFd type
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rwxr-xr-x | test/test-standalone.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-standalone.py b/test/test-standalone.py index cd967a6..7ec6e47 100755 --- a/test/test-standalone.py +++ b/test/test-standalone.py @@ -612,6 +612,9 @@ class TestMessageMarshalling(unittest.TestCase): with self.assertRaises(TypeError): types.UnixFd(plain_fd, variant_level='nope') + + with self.assertRaises(ValueError): + types.UnixFd(plain_fd, variant_level=-1) finally: os.close(plain_fd) |