summaryrefslogtreecommitdiff
path: root/astroid/tests/testdata/python2/data
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-06-02 14:47:46 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-06-02 14:47:46 +0300
commitbe2ccda1a7404b6dda20d43d5d358c7c49be8d35 (patch)
treecbe8fa2420a71c8c8cc71cffdccf67b1345ca664 /astroid/tests/testdata/python2/data
parentc4cd383ee15cafb731885f1742ea28f573eed2bc (diff)
downloadastroid-be2ccda1a7404b6dda20d43d5d358c7c49be8d35.tar.gz
Fix failing tests.
Diffstat (limited to 'astroid/tests/testdata/python2/data')
-rw-r--r--astroid/tests/testdata/python2/data/module.py10
-rw-r--r--astroid/tests/testdata/python2/data/notall.py3
2 files changed, 6 insertions, 7 deletions
diff --git a/astroid/tests/testdata/python2/data/module.py b/astroid/tests/testdata/python2/data/module.py
index 51e36bd..dc206e2 100644
--- a/astroid/tests/testdata/python2/data/module.py
+++ b/astroid/tests/testdata/python2/data/module.py
@@ -1,6 +1,6 @@
"""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 logilab.common.shellutils import ProgressBar as pb
from astroid import modutils
@@ -19,7 +19,7 @@ def global_access(key, val):
else:
break
else:
- print('!!!')
+ return local
class YO:
@@ -52,10 +52,10 @@ class YOUPI(YO):
local = None
autre = [a for (a, b) in MY_DICT if b]
if b in autre:
- print('yo')
+ return b
else:
if a in autre:
- print('hehe')
+ return a
global_access(local, val=autre)
finally:
return local
@@ -73,7 +73,7 @@ class YOUPI(YO):
def four_args(a, b, c, d):
"""four arguments (was nested_args)"""
- print(a, b, c, d)
+ pass
while 1:
if a:
break
diff --git a/astroid/tests/testdata/python2/data/notall.py b/astroid/tests/testdata/python2/data/notall.py
index 99132a5..042491e 100644
--- a/astroid/tests/testdata/python2/data/notall.py
+++ b/astroid/tests/testdata/python2/data/notall.py
@@ -1,8 +1,7 @@
-from __future__ import print_function
name = 'a'
_bla = 2
other = 'o'
class Aaa: pass
-def func(): print('yo')
+def func(): return 'yo'