Commits

Anonymous committed b8a7865

Python 3.x / 2.7 compatibility test

  • Participants
  • Parent commits c633b15

Comments (0)

Files changed (1)

File pypeg2/test/test_pyPEG2.py

         t = pypeg2.compose(r, C2)
         self.assertEqual(t, "!all")
 
+class CslPython32Compatibility(ParserTestCase):
+    def runTest(self):
+        try:
+            g = eval("pypeg2.csl('hello', 'world', separator=';')")
+        except TypeError:
+            return
+        self.assertEqual(g, ("hello", "world", -1, (";", pypeg2.blank, "hello", "world")))
+
 if __name__ == '__main__':
     unittest.main()