diff options
author | clutton <clutton@zoho.com> | 2016-04-14 22:33:21 +0300 |
---|---|---|
committer | clutton <clutton@zoho.com> | 2016-04-14 22:33:21 +0300 |
commit | 7dfb29db81c7a07bfaefd148258c6a897e8bac1b (patch) | |
tree | fe4ea88adc063545bd34b0dbd124fd1bc769b44c /include_server/macro_eval_test.py | |
parent | 50e5b666d85c92a963ed6c1d4150683e87b8b9a5 (diff) | |
download | distcc-git-python3.tar.gz |
include_server python(3) readypython3
Diffstat (limited to 'include_server/macro_eval_test.py')
-rwxr-xr-x | include_server/macro_eval_test.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include_server/macro_eval_test.py b/include_server/macro_eval_test.py index 292cf35..8bc11dc 100755 --- a/include_server/macro_eval_test.py +++ b/include_server/macro_eval_test.py @@ -1,4 +1,4 @@ -#! /usr/bin/python2.4 +#! /usr/bin/env python3 # Copyright 2007 Google Inc. # @@ -16,7 +16,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. - + __author__ = "Nils Klarlund" # See also tests in include_server_test.py. @@ -140,8 +140,8 @@ class MacroEvalTest(unittest.TestCase): macro_eval.EvalExpression("myfile(hello)", { 'myfile': [(['x'], "myquote(myplace/x)")], 'myquote': [(['y'], """#y""")] }), - set(['myfile(hello)', - '"myplace/hello"', + set(['myfile(hello)', + '"myplace/hello"', 'myquote(myplace/hello)'])) @@ -166,7 +166,7 @@ class MacroEvalTest(unittest.TestCase): # #define PLUS + # #define EMPTY # #define f(x) =x= - # + # # +PLUS -EMPTY- PLUS+ f(=) # ==> + + - - + + = = = # @@ -177,7 +177,7 @@ class MacroEvalTest(unittest.TestCase): { 'PLUS':['+'], 'EMPTY':[""], 'f':[(['x'], '=x=')] }), - set(['++ -EMPTY- ++ ===', + set(['++ -EMPTY- ++ ===', '++ -EMPTY- PLUS+ ===', '+PLUS -- ++ f(=)', '+PLUS -EMPTY- ++ ===', @@ -233,5 +233,5 @@ class MacroEvalTest(unittest.TestCase): 'AS_STRING', 'AS_STRING_INTERNAL', 'tpl', 'varnames', 'h', 'foo'])) - + unittest.main() |