def test_cython(self): prev, sys.platform = sys.platform, "darwin" gfe, sys.getfilesystemencoding = sys.getfilesystemencoding, lambda: "utf-8" try: self.assertEqual(default_encode("foo"), "foo") finally: sys.platform = prev sys.getfilesystemencoding = gfe
def test_cython(self): prev, sys.platform = sys.platform, "darwin" gfe, sys.getfilesystemencoding = sys.getfilesystemencoding, \ lambda: "utf-8" try: self.assertEqual(default_encode("foo"), "foo") finally: sys.platform = prev sys.getfilesystemencoding = gfe
def test_jython(self): prev, sys.platform = sys.platform, "java 1.6.1" try: self.assertEqual(default_encode("foo"), "foo") finally: sys.platform = prev