From f39a09b121ef733e66c0355c8faf2ecd35baafae Mon Sep 17 00:00:00 2001 From: Alexander Loechel Date: Sun, 12 Mar 2017 23:35:13 +0100 Subject: [PATCH] delete unnecessary test --- tests/test_unicode.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 tests/test_unicode.py diff --git a/tests/test_unicode.py b/tests/test_unicode.py deleted file mode 100644 index 71007a1..0000000 --- a/tests/test_unicode.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -import ast - - -# Port of file: tests/testCompile.py - -def test_unicode_source(): - """ - Test if the AST Parsing works with Unicode source. - """ - # TODO: Review is that is really somethin we want to test this way. - # ast.parse is a python core method and should be tested there. - # RestrictedPython.RCompile _niceParse is not reimplemented. - source = u"u'Ä väry nice säntänce with umlauts.'" - - assert isinstance(ast.parse(source, "test.py", "exec"), ast.Module) - assert isinstance(ast.parse(source, "test.py", "single"), ast.Interactive) - assert isinstance(ast.parse(source, "test.py", "eval"), ast.Expression)