mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 00:04:39 +02:00
Remove everything up until class Foo(object):
in pdb tests
PyPy3 displays prompt two times on the line where `s` is present.
This commit is contained in:
parent
c3e541d16a
commit
f4e3c3099f
@ -1,5 +1,3 @@
|
|||||||
[K[0;38;5;235;48;5;252;1m 1 [0;38;5;252;48;5;240;22m [0;38;5;252;48;5;240;1mpdb-script.py:[0;38;5;252;48;5;240;1m2 [0;38;5;250;48;5;240m<module> [0;38;5;240;49;22m [0ms
|
|
||||||
-> class Foo(object):
|
|
||||||
[0;38;5;235;48;5;252;1m 1 [0;38;5;252;48;5;240;22m [0;38;5;252;48;5;240;1mpdb-script.py:[0;38;5;252;48;5;240;1m6 [0;38;5;250;48;5;240m<module> [0;38;5;240;49;22m [0m
|
[0;38;5;235;48;5;252;1m 1 [0;38;5;252;48;5;240;22m [0;38;5;252;48;5;240;1mpdb-script.py:[0;38;5;252;48;5;240;1m6 [0;38;5;250;48;5;240m<module> [0;38;5;240;49;22m [0m
|
||||||
--Call--
|
--Call--
|
||||||
-> class Foo(object):
|
-> class Foo(object):
|
||||||
|
@ -1,9 +1,3 @@
|
|||||||
--Call--
|
|
||||||
-> def nop(_):
|
|
||||||
[0;38;5;235;48;5;252;1m 2 [0;38;5;252;48;5;240;22m [0;38;5;252;48;5;240;1m<string>:[0;38;5;252;48;5;240;1m1 [0;38;5;250;48;5;240m<module> [0;38;5;250;48;5;240;22m [0;38;5;252;48;5;240;1mpdb-script.py:[0;38;5;252;48;5;240;1m2 [0;38;5;250;48;5;240m<module> [0;38;5;240;49;22m [0m
|
|
||||||
-> def nop(_):
|
|
||||||
[0;38;5;235;48;5;252;1m 2 [0;38;5;252;48;5;240;22m [0;38;5;252;48;5;240;1m<string>:[0;38;5;252;48;5;240;1m1 [0;38;5;250;48;5;240m<module> [0;38;5;250;48;5;240;22m [0;38;5;252;48;5;240;1mpdb-script.py:[0;38;5;252;48;5;240;1m2 [0;38;5;250;48;5;240m<module> [0;38;5;240;49;22m [0m
|
|
||||||
-> class Foo(object):
|
|
||||||
[0;38;5;235;48;5;252;1m 2 [0;38;5;252;48;5;240;22m [0;38;5;252;48;5;240;1m<string>:[0;38;5;252;48;5;240;1m1 [0;38;5;250;48;5;240m<module> [0;38;5;250;48;5;240;22m [0;38;5;252;48;5;240;1mpdb-script.py:[0;38;5;252;48;5;240;1m6 [0;38;5;250;48;5;240m<module> [0;38;5;240;49;22m [0m
|
[0;38;5;235;48;5;252;1m 2 [0;38;5;252;48;5;240;22m [0;38;5;252;48;5;240;1m<string>:[0;38;5;252;48;5;240;1m1 [0;38;5;250;48;5;240m<module> [0;38;5;250;48;5;240;22m [0;38;5;252;48;5;240;1mpdb-script.py:[0;38;5;252;48;5;240;1m6 [0;38;5;250;48;5;240m<module> [0;38;5;240;49;22m [0m
|
||||||
--Call--
|
--Call--
|
||||||
-> class Foo(object):
|
-> class Foo(object):
|
||||||
|
@ -38,10 +38,11 @@ with codecs.open(fname, 'r', encoding='utf-8') as R:
|
|||||||
for line in (R if shell != 'fish' else R.read().split('\n')):
|
for line in (R if shell != 'fish' else R.read().split('\n')):
|
||||||
i += 1
|
i += 1
|
||||||
if not found_cd:
|
if not found_cd:
|
||||||
if shell == 'pdb':
|
found_cd = (
|
||||||
found_cd = (i > 1)
|
'class Foo(object):' in line
|
||||||
else:
|
if shell == 'pdb' else
|
||||||
found_cd = ('cd tests/shell/3rd' in line)
|
'cd tests/shell/3rd' in line
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
if 'true is the last line' in line:
|
if 'true is the last line' in line:
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user