X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=blobdiff_plain;f=parser%2Ftest_parser.py;h=67c0ae3fc848e0a95df1a47e3c2387017b7d7491;hp=0a30eda4217dd655b99c272b6001151c598fd6e6;hb=3db3a1c52868d865cac4e96d6521f62feb15cf77;hpb=553446ee8da7062c60915a2078d1c7311e85d612 diff --git a/parser/test_parser.py b/parser/test_parser.py index 0a30eda..67c0ae3 100755 --- a/parser/test_parser.py +++ b/parser/test_parser.py @@ -1,12 +1,12 @@ #! /usr/bin/env python import unittest -from parsimonious import ParseError -from parser import compile +from ometa.runtime import ParseError +from parser import parse class TestParser(unittest.TestCase): def _parse(self, input): - return compile(input) + return parse(input) def test_02_tag(self): self.assertEqual(self._parse('xxx'), ('NAME', 'xxx'))