diff options
-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) |