From c0cc8f69e7abfa8578729031f97ae4b96c5cdafe Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 3 Feb 2015 18:02:59 -0500 Subject: 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 --- tests/import_error_package/__init__.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/import_error_package/__init__.py (limited to 'tests/import_error_package') 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") -- cgit v1.3