Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
workflow
pypushflow
Commits
811bb1f8
Commit
811bb1f8
authored
Jul 30, 2020
by
payno
Browse files
remove some remaining from a previous project
parent
61ac29ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
representation
@
e99104e1
Compare
ac97541e
...
e99104e1
Subproject commit
ac97541efc62b1e4e2640ec568d33af23c2f417f
Subproject commit
e99104e134c9932d2be81c3870f5c923ba62cccc
run_tests.py
View file @
811bb1f8
...
...
@@ -332,8 +332,6 @@ if __name__ == "__main__": # Needed for multiprocessing support on Windows
help
=
"Increase verbosity. Option -v prints additional "
+
"INFO messages. Use -vv for full verbosity, "
+
"including debug messages and test help strings."
)
parser
.
add_argument
(
"--qt-binding"
,
dest
=
"qt_binding"
,
default
=
None
,
help
=
"Force using a Qt binding, from 'PyQt4', 'PyQt5', or 'PySide'"
)
default_test_name
=
"%s.test.suite"
%
PROJECT_NAME
parser
.
add_argument
(
"test_name"
,
nargs
=
'*'
,
...
...
@@ -356,30 +354,6 @@ if __name__ == "__main__": # Needed for multiprocessing support on Windows
test_verbosity
=
2
use_buffer
=
False
if
options
.
qt_binding
:
binding
=
options
.
qt_binding
.
lower
()
if
binding
==
"pyqt4"
:
logger
.
info
(
"Force using PyQt4"
)
if
sys
.
version
<
"3.0.0"
:
try
:
import
sip
sip
.
setapi
(
"QString"
,
2
)
sip
.
setapi
(
"QVariant"
,
2
)
except
Exception
:
logger
.
warning
(
"Cannot set sip API"
)
import
PyQt4.QtCore
# noqa
elif
binding
==
"pyqt5"
:
logger
.
info
(
"Force using PyQt5"
)
import
PyQt5.QtCore
# noqa
elif
binding
==
"pyside"
:
logger
.
info
(
"Force using PySide"
)
import
PySide.QtCore
# noqa
elif
binding
==
"pyside2"
:
logger
.
info
(
"Force using PySide2"
)
import
PySide2.QtCore
# noqa
else
:
raise
ValueError
(
"Qt binding '%s' is unknown"
%
options
.
qt_binding
)
# Run the tests
runnerArgs
=
{}
runnerArgs
[
"verbosity"
]
=
test_verbosity
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment