
    e{                     "    d Z ddlZddlmZ d Zy)z(Test the deferred import error mechanism    N)QtModuleNotInstalledErrorc                      ddl m}  | j                  J t        j                  t
              5 }ddlm} ddd       d}|t        j                        k(  sJ y# 1 sw Y   &xY w)zETest importing a module that uses the deferred import error mechanism   )optional_depsN)MissingClasszrThe optional_dep.MissingClass module was not found. It must be installed separately as test_package_please_ignore.)	 r   ExampleClasspytestraisesr   r   strvalue)r   excinfor   msgs       G/usr/lib/python3/dist-packages/qtpy/tests/test_missing_optional_deps.pytest_missing_optional_depsr      s]    %%111	0	1 0W/0 C#gmm$$$$	0 0s   AA#)__doc__r
   qtpyr   r        r   <module>r      s    .  *
%r   