diff options
author | Ian Lee <IanLee1521@gmail.com> | 2014-12-15 19:49:34 -0800 |
---|---|---|
committer | Ian Lee <IanLee1521@gmail.com> | 2014-12-15 19:49:34 -0800 |
commit | f2251e17f20a82178cdb11c0c61ee4e5cdbfd8c4 (patch) | |
tree | 5e7c64e2742ec10e41cb5546a14453fe77f7a6a0 | |
parent | 88c0b8e0b83920c1813a4d061f98d470f9d06c30 (diff) | |
download | pep8-f2251e17f20a82178cdb11c0c61ee4e5cdbfd8c4.tar.gz |
Add more test cases for E402; issue #304issue-304
-rw-r--r-- | testsuite/E40.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/E40.py b/testsuite/E40.py index d921c25..1051e32 100644 --- a/testsuite/E40.py +++ b/testsuite/E40.py @@ -11,3 +11,28 @@ from foo.bar.yourclass import YourClass import myclass import foo.bar.yourclass +#: E402 +__all__ = ['abc'] + +import foo +#: Okay +try: + import foo +except: + pass +else: + print('imported foo') +finally: + print('made attempt to import foo') + +import bar +#: E402 +VERSION = '1.2.3' + +import foo +#: E402 +import foo + +a = 1 + +import bar |