~jfb-tempo-consulting/unifield-wm/sync-env-py3

« back to all changes in this revision

Viewing changes to unittest27/test/test_runner.py

  • Committer: jf
  • Date: 2013-11-29 16:48:09 UTC
  • Revision ID: jfb@tempo-consulting.fr-20131129164809-6d2ciu2q0hvk3vc8
[FIX] Restart server on update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import unittest
2
2
 
3
 
from io import StringIO
 
3
from cStringIO import StringIO
4
4
import pickle
5
5
 
6
6
from .support import LoggingResult, ResultWithNoStartTestRunStopTestRun
225
225
    def test_pickle_unpickle(self):
226
226
        # Issue #7197: a TextTestRunner should be (un)pickleable. This is
227
227
        # required by test_multiprocessing under Windows (in verbose mode).
228
 
        from io import StringIO as PickleableIO
 
228
        from StringIO import StringIO as PickleableIO
229
229
        # cStringIO objects are not pickleable, but StringIO objects are.
230
230
        stream = PickleableIO("foo")
231
231
        runner = unittest.TextTestRunner(stream)