summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-10-22 10:07:02 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2015-10-22 10:07:02 +0100
commitb64661734ed34ac100d229e800d59e1cb4ebf619 (patch)
tree7e57255485c676209bab58b758c461d5cf2562b0
parent39601d81ccf045b6586707404aff20cf4d2ae5ac (diff)
downloadastroid-b64661734ed34ac100d229e800d59e1cb4ebf619.tar.gz
Replace the use of print in python3/data/module.py, since it complicates the testing of as_string.
-rw-r--r--astroid/tests/testdata/python3/data/module.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/astroid/tests/testdata/python3/data/module.py b/astroid/tests/testdata/python3/data/module.py
index 6399000..2a5fb58 100644
--- a/astroid/tests/testdata/python3/data/module.py
+++ b/astroid/tests/testdata/python3/data/module.py
@@ -1,6 +1,5 @@
"""test module for astroid
"""
-from __future__ import print_function
__revision__ = '$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $'
from astroid.node_classes import Name as NameNode
@@ -20,7 +19,7 @@ def global_access(key, val):
else:
break
else:
- print('!!!')
+ return
class YO:
@@ -53,10 +52,10 @@ class YOUPI(YO):
local = None
autre = [a for (a, b) in MY_DICT if b]
if b in autre:
- print('yo', end=' ')
+ return
else:
if a in autre:
- print('hehe')
+ return 'hehe'
global_access(local, val=autre)
finally:
return local
@@ -74,7 +73,6 @@ class YOUPI(YO):
def four_args(a, b, c, d):
"""four arguments (was nested_args)"""
- print(a, b, c, d)
while 1:
if a:
break