mirror of
https://github.com/mitogen-hq/mitogen.git
synced 2025-02-26 21:00:41 +00:00

* ansible: use unicode_literals everywhere since it only needs to be compatible back to 2.6. * compat/collections.py: delete this entirely and rip out the parts of functools that require it. * Introduce serializable Kwargs dict subclass that translates keys to Unicode on instantiation. * enable_debug_logging() must set _v/_vv globals. * cStringIO does not exist in 3.x. * Treat IOLogger and LogForwarder input as latin-1. * Avoid ResourceWarnings in first stage by explicitly closing fps. * Fix preamble_size.py syntax errors.
20 lines
386 B
Python
20 lines
386 B
Python
import os
|
|
|
|
import unittest2
|
|
|
|
import testlib
|
|
|
|
|
|
class NestedTest(testlib.RouterMixin, testlib.TestCase):
|
|
def test_nested(self):
|
|
context = None
|
|
for x in range(1, 11):
|
|
context = self.router.local(via=context, name='local%d' % x)
|
|
|
|
pid = context.call(os.getpid)
|
|
self.assertIsInstance(pid, int)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest2.main()
|