Fix istate.pybroccoli test on systems using Python 3

Filter out the python 2 "L" suffix on long integers (not valid in Python 3),
and change python 3 "object at" to "instance at" when printing
class instances.
This commit is contained in:
Daniel Thayer 2016-10-14 14:10:40 -05:00
parent bd0a374c87
commit 6fa9540e47

View file

@ -8,8 +8,8 @@
# @TEST-EXEC: btest-bg-wait -k 20
# @TEST-EXEC: btest-diff bro/.stdout
#
# @TEST-EXEC: sed 's/instance at [^>]*>/instance at >/' <python/.stdout >python/.stdout.filtered
# @TEST-EXEC: btest-diff python/.stdout.filtered
# @TEST-EXEC: sed -e 's/instance at [^>]*>/instance at >/' -e 's/object at [^>]*>/instance at >/' <python/.stdout >python/.stdout.filtered
# @TEST-EXEC: TEST_DIFF_CANONIFIER="sed -e 's/^\([-]*[0-9][0-9]*\)L/\1/' | $SCRIPTS/diff-remove-timestamps" btest-diff python/.stdout.filtered
event remote_connection_closed(p: event_peer)
{