Skip to content

Commit

Permalink
Minor improvements to coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jun 9, 2016
1 parent 0260b4f commit 63dbdfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tests/conftest.py
Expand Up @@ -2,6 +2,9 @@


def pytest_configure(config):
"""
This function gets run by py.test at the very start
"""

if 'USE_QT_API' in os.environ:
os.environ['QT_API'] = os.environ['USE_QT_API'].lower()
Expand All @@ -12,6 +15,10 @@ def pytest_configure(config):


def pytest_report_header(config):
"""
This function is used by py.test to insert a customized header into the
test report.
"""

versions = os.linesep
versions += 'PyQt4: '
Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Expand Up @@ -32,7 +32,7 @@ def test_qt_api():
If QT_API is specified, we check that the correct Qt wrapper was used
"""

QT_API = os.environ.get('QT_API', None)
QT_API = os.environ.get('QT_API')

if QT_API == 'pyside':
assert_pyside()
Expand Down

0 comments on commit 63dbdfd

Please sign in to comment.