
cV]c           @@  s   d  Z  d d l m Z d d l Z d d l Z d d l m Z m Z d   Z d   Z	 e j
 j e ph e d d d	    Z d S(
   s#   Test QDesktopServices split in Qt5.i    (   t   absolute_importN(   t   PYQT4t   PYSIDEc          C@  sH   d d l  m }  |  j d k	 s% t  t j t   } |  j Wd QXd S(   s&   Test the qtpy.QStandardPaths namespacei    (   t   QStandardPathsN(	   t   qtpy.QtCoreR   t   StandardLocationt   Nonet   AssertionErrort   pytestt   raisest   AttributeErrort   setUrlHandler(   R   t   excinfo(    (    sD   lib/python2.7/site-packages/qtpy/tests/test_qdesktopservice_split.pyt   test_qstandarpath
   s    c          C@  s)   d d l  m }  |  j d k	 s% t  d S(   s(   Test the qtpy.QDesktopServices namespacei    (   t   QDesktopServicesN(   t
   qtpy.QtGuiR   R   R   R   (   R   (    (    sD   lib/python2.7/site-packages/qtpy/tests/test_qdesktopservice_split.pyt   test_qdesktopservice   s    t   reasons&   Warning is only raised in old bindingsc          C@  s   d d l  m }  t j d t  n } t j d  |  j t |  d k sQ t  t	 | d j
 t  sm t  d t | d j  k s t  Wd  QXd  S(   Ni    (   R   t   recordt   alwaysi   it
   deprecated(   R   R   t   warningst   catch_warningst   Truet   simplefilterR   t   lenR   t
   issubclasst   categoryt   DeprecationWarningt   strt   message(   R   t   w(    (    sD   lib/python2.7/site-packages/qtpy/tests/test_qdesktopservice_split.pyt   test_qdesktopservice_qt4_pyside   s    (   t   __doc__t
   __future__R    R   R   t   qtpyR   R   R   R   t   markt   skipifR    (    (    (    sD   lib/python2.7/site-packages/qtpy/tests/test_qdesktopservice_split.pyt   <module>   s   		