directory must be specified separately.
If importing a module fails, for example due to a syntax error, then this
- will be recorded as a single error and discovery will continue.
+ will be recorded as a single error and discovery will continue. If the
- import failure is due to ``SkipTest`` being raised, it will be recorded
++ import failure is due to :exc:`SkipTest` being raised, it will be recorded
+ as a skip instead of an error.
If a test package name (directory with :file:`__init__.py`) matches the
pattern then the package will be checked for a ``load_tests``
.. versionadded:: 3.2
- Modules that raise ``SkipTest`` on import are recorded as skips, not
- errors.
+ .. versionchanged:: 3.4
++ Modules that raise :exc:`SkipTest` on import are recorded as skips,
++ not errors.
+
+ .. versionchanged:: 3.4
+ Paths are sorted before being imported to ensure execution order for a
+ given test suite is the same even if the underlying file system's ordering
+ is not dependent on file name like in ext3/4.
+
The following attributes of a :class:`TestLoader` can be configured either by
subclassing or assignment on an instance: