test_qtcore.py 445 B

123456789101112131415161718
  1. from __future__ import absolute_import
  2. import pytest
  3. from qtpy import PYQT5, PYSIDE2, QtCore
  4. """Test QtCore."""
  5. def test_qtmsghandler():
  6. """Test qtpy.QtMsgHandler"""
  7. assert QtCore.qInstallMessageHandler is not None
  8. @pytest.mark.skipif(not (PYQT5 or PYSIDE2),
  9. reason="Targeted to PyQt5 or PySide2")
  10. def test_DateTime_toPython():
  11. """Test QDateTime.toPython"""
  12. assert QtCore.QDateTime.toPython is not None