mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-10 05:52:22 +08:00
found the memory-critical pieces. also removed old debug code
This commit is contained in:
9
test/completion/thirdparty/PySide_.py
vendored
9
test/completion/thirdparty/PySide_.py
vendored
@@ -1,9 +0,0 @@
|
||||
from PySide import QtCore
|
||||
from PySide import QtGui
|
||||
|
||||
##? ['QEvent']
|
||||
QtCore.QEvent
|
||||
|
||||
##? []
|
||||
QtGui.QButton
|
||||
|
||||
@@ -9,8 +9,8 @@ sys.path.append('.')
|
||||
import functions
|
||||
from _compatibility import unicode, BytesIO
|
||||
|
||||
only_line = int(sys.argv[2]) if len(sys.argv) > 2 else None
|
||||
if only_line is not None:
|
||||
only_line = [int(o) for o in sys.argv[2:]]
|
||||
if only_line:
|
||||
import debug
|
||||
debug.debug_function = \
|
||||
functions.debug.print_to_stdout
|
||||
@@ -164,7 +164,7 @@ def run_test(source, f_name):
|
||||
correct = None
|
||||
else:
|
||||
# reset the test, if only one specific test is wanted
|
||||
if only_line and line_nr != only_line:
|
||||
if only_line and line_nr not in only_line:
|
||||
correct = None
|
||||
return tests, fails
|
||||
|
||||
@@ -209,5 +209,6 @@ print('\nSummary:')
|
||||
for s in summary:
|
||||
print(s)
|
||||
|
||||
|
||||
exit_code = 0 if tests_pass else 1
|
||||
sys.exit(exit_code)
|
||||
|
||||
Reference in New Issue
Block a user