Skip to content

Commit 41102c9

Browse files
authored
Merge pull request #138 from abstractfactory/fix137
Fix #137
2 parents 7a1f634 + 728eff9 commit 41102c9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Dockerfile-py2.7

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ RUN pip install nose nosepipe
1919

2020
# Enable additional output from Qt.py
2121
ENV QT_VERBOSE true
22+
ENV QT_TESTING true
23+
2224
# Xvfb
2325
ENV DISPLAY :99
2426

Dockerfile-py3.5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN pip3 install nose nosepipe
1919

2020
# Enable additional output from Qt.py
2121
ENV QT_VERBOSE true
22+
ENV QT_TESTING true
2223

2324
# Xvfb
2425
ENV DISPLAY :99

Qt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import os
3232
import sys
3333

34-
__version__ = "0.4.2"
34+
__version__ = "0.4.3"
3535

3636
# All unique members of Qt.py
3737
__added__ = list()
@@ -57,7 +57,7 @@ def remap(object, name, value, safe=True):
5757
5858
"""
5959

60-
if safe:
60+
if os.getenv("QT_TESTING") is not None and safe:
6161
# Cannot alter original binding.
6262
if hasattr(object, name):
6363
raise AttributeError("Cannot override existing name: "

0 commit comments

Comments
 (0)