| Index: third_party/pexpect/tests/test_pickling.py
|
| diff --git a/third_party/pexpect/tests/test_pickling.py b/third_party/pexpect/tests/test_pickling.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6538677075ac1a655d33e454ad4f83c0fddbef08
|
| --- /dev/null
|
| +++ b/third_party/pexpect/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()
|
|
|