Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 def test_cpython(self):
     prev, sys.platform = sys.platform, 'darwin'
     gfe, sys.getfilesystemencoding = sys.getfilesystemencoding, \
                                      lambda: 'utf-8'
     try:
         self.assertEqual(default_encode(bytes('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
Exemple #5
0
 def test_cpython(self):
     prev, sys.platform = sys.platform, 'darwin'
     gfe, sys.getfilesystemencoding = (
         sys.getfilesystemencoding,
         lambda: 'utf-8',
     )
     try:
         assert default_encode(b'foo') == b'foo'
     finally:
         sys.platform = prev
         sys.getfilesystemencoding = gfe
Exemple #6
0
 def test_cpython(self):
     prev, sys.platform = sys.platform, 'darwin'
     gfe, sys.getfilesystemencoding = (
         sys.getfilesystemencoding,
         lambda: 'utf-8',
     )
     try:
         assert default_encode(b'foo') == b'foo'
     finally:
         sys.platform = prev
         sys.getfilesystemencoding = gfe
Exemple #7
0
 def test_jython(self):
     prev, sys.platform = sys.platform, "java 1.6.1"
     try:
         self.assertEqual(default_encode("foo"), "foo")
     finally:
         sys.platform = prev
Exemple #8
0
 def test_jython(self):
     prev, sys.platform = sys.platform, 'java 1.6.1'
     try:
         assert default_encode(b'foo') == b'foo'
     finally:
         sys.platform = prev
Exemple #9
0
 def test_jython(self):
     prev, sys.platform = sys.platform, 'java 1.6.1'
     try:
         self.assertEqual(default_encode(bytes('foo')), 'foo')
     finally:
         sys.platform = prev
Exemple #10
0
 def test_jython(self):
     prev, sys.platform = sys.platform, 'java 1.6.1'
     try:
         assert default_encode(b'foo') == b'foo'
     finally:
         sys.platform = prev
 def test_jython(self):
     prev, sys.platform = sys.platform, 'java 1.6.1'
     try:
         self.assertEqual(default_encode(bytes('foo')), 'foo')
     finally:
         sys.platform = prev
Exemple #12
0
 def test_jython(self):
     prev, sys.platform = sys.platform, "java 1.6.1"
     try:
         self.assertEqual(default_encode("foo"), "foo")
     finally:
         sys.platform = prev