Skip to content

Commit

Permalink
Add one test to check for possible None value of QApplication.instance()
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebird75 committed Apr 26, 2022
1 parent 5cfd443 commit e4d9be7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/qapplication.py
@@ -0,0 +1,9 @@
from typing import Optional

from PyQt5.QtCore import QCoreApplication

# let the default type propagate to app
app = QCoreApplication.instance()

# ensure that QCoreApplication.instance() may also return None
app = None

0 comments on commit e4d9be7

Please sign in to comment.