|
|
|
@ -8,11 +8,11 @@ import mitogen.core
|
|
|
|
|
import mitogen.master
|
|
|
|
|
|
|
|
|
|
import testlib
|
|
|
|
|
import simple_pkg.ping
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def roundtrip(*args):
|
|
|
|
|
return args
|
|
|
|
|
|
|
|
|
|
# TODO: this is a joke. 2/3 interop is one of the hardest bits to get right.
|
|
|
|
|
# There should be 100 tests in this file.
|
|
|
|
|
|
|
|
|
|
class TwoThreeCompatTest(testlib.RouterMixin, testlib.TestCase):
|
|
|
|
|
if mitogen.core.PY3:
|
|
|
|
@ -21,10 +21,10 @@ class TwoThreeCompatTest(testlib.RouterMixin, testlib.TestCase):
|
|
|
|
|
python_path = 'python3'
|
|
|
|
|
|
|
|
|
|
def test_succeeds(self):
|
|
|
|
|
spare = self.router.fork()
|
|
|
|
|
spare = self.router.local()
|
|
|
|
|
target = self.router.local(python_path=self.python_path)
|
|
|
|
|
|
|
|
|
|
spare2, = target.call(roundtrip, spare)
|
|
|
|
|
spare2, = target.call(simple_pkg.ping.ping, spare)
|
|
|
|
|
self.assertEquals(spare.context_id, spare2.context_id)
|
|
|
|
|
self.assertEquals(spare.name, spare2.name)
|
|
|
|
|
|
|
|
|
|