From 4b432e0f50e9f5871a2f7375b406be7258bfa22c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 9 Aug 2013 22:45:59 -0400 Subject: Issue 50: Removed filename and line number from SyntaxErrors returned by invalid_marker. This change simplifies the test and paves the way for supporting PyPy. --- tests/api_tests.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/api_tests.txt') diff --git a/tests/api_tests.txt b/tests/api_tests.txt index 86ca245d..38b762d2 100644 --- a/tests/api_tests.txt +++ b/tests/api_tests.txt @@ -341,8 +341,8 @@ Environment Markers >>> print(im("sys_platform")) Comparison or logical expression expected - >>> print(im("sys_platform==")) # doctest: +ELLIPSIS - unexpected EOF while parsing (...line 1) + >>> print(im("sys_platform==")) + unexpected EOF while parsing >>> print(im("sys_platform=='win32'")) False @@ -353,8 +353,8 @@ Environment Markers >>> print(im("(extra)")) Comparison or logical expression expected - >>> print(im("(extra")) # doctest: +ELLIPSIS - unexpected EOF while parsing (...line 1) + >>> print(im("(extra")) + unexpected EOF while parsing >>> print(im("os.open('foo')=='y'")) Language feature not supported in environment markers -- cgit v1.2.1 From b383fe311089ed6488916614acbf085521c12e48 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 9 Aug 2013 22:53:38 -0400 Subject: Replaced overly-specific error messages with more general ones for improved cross-implementation compatibility. Fixes #50. --- tests/api_tests.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/api_tests.txt') diff --git a/tests/api_tests.txt b/tests/api_tests.txt index 38b762d2..d34f2314 100644 --- a/tests/api_tests.txt +++ b/tests/api_tests.txt @@ -342,7 +342,7 @@ Environment Markers Comparison or logical expression expected >>> print(im("sys_platform==")) - unexpected EOF while parsing + invalid syntax >>> print(im("sys_platform=='win32'")) False @@ -354,7 +354,7 @@ Environment Markers Comparison or logical expression expected >>> print(im("(extra")) - unexpected EOF while parsing + invalid syntax >>> print(im("os.open('foo')=='y'")) Language feature not supported in environment markers -- cgit v1.2.1