summaryrefslogtreecommitdiff
path: root/tests/import_error_package
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-03 18:02:59 -0500
committerTim Graham <timograham@gmail.com>2015-02-03 18:31:17 -0500
commit3e24ab6f4ca6632c910c684fda3d0f937fade52a (patch)
treee8bbfb0668dfa4e5321403565aa7b3500f2888d8 /tests/import_error_package
parentcbcf92e95f8a6d275b55069de3c57835814b502f (diff)
[1.8.x] Refactored tests that rely on an ImportError for Python 3.5 compatibility
A change in Python test discovery [1] causes the old packages that raised an error to be discovered; now we use a common directory that's ignored during discovery. Refs #23763. [1] http://bugs.python.org/issue7559 Backport of c0cc8f69e7abfa8578729031f97ae4b96c5cdafe from master
Diffstat (limited to 'tests/import_error_package')
-rw-r--r--tests/import_error_package/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/import_error_package/__init__.py b/tests/import_error_package/__init__.py
new file mode 100644
index 0000000000..c872aec5a7
--- /dev/null
+++ b/tests/import_error_package/__init__.py
@@ -0,0 +1,3 @@
+# A package that raises an ImportError that can be shared among test apps and
+# excluded from test discovery.
+raise ImportError("Oops")