Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1310)

Side by Side Diff: third_party/pexpect/tests/test_pickling.py

Issue 1398903002: Add third_party/pexpect (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@end-to-end-test
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 import pickle
3 import unittest
4
5 from pexpect import ExceptionPexpect
6
7 class PickleTest(unittest.TestCase):
8 def test_picking(self):
9 e = ExceptionPexpect('Oh noes!')
10 clone = pickle.loads(pickle.dumps(e))
11 self.assertEqual(e.value, clone.value)
12
13 if __name__ == '__main__':
14 unittest.main()
OLDNEW
« no previous file with comments | « third_party/pexpect/tests/test_performance.py ('k') | third_party/pexpect/tests/test_popen_spawn.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698