diff options
Diffstat (limited to 'lldb/third_party/Python/module/pexpect-4.6/tests/test_pickling.py')
-rw-r--r-- | lldb/third_party/Python/module/pexpect-4.6/tests/test_pickling.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/third_party/Python/module/pexpect-4.6/tests/test_pickling.py b/lldb/third_party/Python/module/pexpect-4.6/tests/test_pickling.py new file mode 100644 index 00000000000..6538677075a --- /dev/null +++ b/lldb/third_party/Python/module/pexpect-4.6/tests/test_pickling.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +import pickle +import unittest + +from pexpect import ExceptionPexpect + +class PickleTest(unittest.TestCase): + def test_picking(self): + e = ExceptionPexpect('Oh noes!') + clone = pickle.loads(pickle.dumps(e)) + self.assertEqual(e.value, clone.value) + +if __name__ == '__main__': + unittest.main() |