diff options
| author | Torsten Marek <shlomme@gmail.com> | 2014-11-09 22:44:59 +0100 |
|---|---|---|
| committer | Torsten Marek <shlomme@gmail.com> | 2014-11-09 22:44:59 +0100 |
| commit | f5952d500ca1052252a0d8699be7ca3cf8e4eeda (patch) | |
| tree | 24950b435ecabac9e22f1a22ce03de980dcd231a /astroid/tests/testdata/python2/data/appl/myConnection.py | |
| parent | 7b8f664cf8aa5e8f2e7f444b2274ae62b6390e1c (diff) | |
| download | astroid-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/appl/myConnection.py')
| -rw-r--r-- | astroid/tests/testdata/python2/data/appl/myConnection.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/astroid/tests/testdata/python2/data/appl/myConnection.py b/astroid/tests/testdata/python2/data/appl/myConnection.py new file mode 100644 index 0000000..4afc9e4 --- /dev/null +++ b/astroid/tests/testdata/python2/data/appl/myConnection.py @@ -0,0 +1,11 @@ +from data import SSL1 +class MyConnection(SSL1.Connection): + + """An SSL connection.""" + + def __init__(self, dummy): + print 'MyConnection init' + +if __name__ == '__main__': + myConnection = MyConnection(' ') + raw_input('Press Enter to continue...') |
