summaryrefslogtreecommitdiff
path: root/astroid/tests/testdata/python2/data/format.py
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-11-09 22:44:59 +0100
committerTorsten Marek <shlomme@gmail.com>2014-11-09 22:44:59 +0100
commitf5952d500ca1052252a0d8699be7ca3cf8e4eeda (patch)
tree24950b435ecabac9e22f1a22ce03de980dcd231a /astroid/tests/testdata/python2/data/format.py
parent7b8f664cf8aa5e8f2e7f444b2274ae62b6390e1c (diff)
downloadastroid-f5952d500ca1052252a0d8699be7ca3cf8e4eeda.tar.gz
Merge all test data into a single package per Python version.
Also modernized a lot of test code. This makes it possible to run the tests from both the base directory of the project as well as the astroid package. Since the packages have the same name for Python 2 and 3, there is less version-dependent code in the tests.
Diffstat (limited to 'astroid/tests/testdata/python2/data/format.py')
-rw-r--r--astroid/tests/testdata/python2/data/format.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/astroid/tests/testdata/python2/data/format.py b/astroid/tests/testdata/python2/data/format.py
new file mode 100644
index 0000000..7379706
--- /dev/null
+++ b/astroid/tests/testdata/python2/data/format.py
@@ -0,0 +1,34 @@
+"""A multiline string
+"""
+
+function('aeozrijz\
+earzer', hop)
+# XXX write test
+x = [i for i in range(5)
+ if i % 4]
+
+fonction(1,
+ 2,
+ 3,
+ 4)
+
+def definition(a,
+ b,
+ c):
+ return a + b + c
+
+class debile(dict,
+ object):
+ pass
+
+if aaaa: pass
+else:
+ aaaa,bbbb = 1,2
+ aaaa,bbbb = bbbb,aaaa
+# XXX write test
+hop = \
+ aaaa
+
+
+__revision__.lower();
+