This file is indexed.

/usr/share/pyshared/simpleparse/tests/test_backup_on_subtable_failure.py is in python-simpleparse 2.1.0a1-6build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
declaration = r'''testparser := (a,b)*
a := 'a'
b := 'b'
'''
testdata = 'aba'
expectedResult = (1, [('a',0,1,[]), ('b',1,2,[])], 2 )

from simpleparse.simpleparsegrammar import Parser
from simpleparse.stt.TextTools import TextTools
import pprint


parser = Parser( declaration ).generator.buildParser('testparser' )
result = TextTools.tag( testdata, parser )
if result != expectedResult:
	print 'backup-on-subtable-test failed'
	print '\texpected', pprint.pprint( expectedResult )
	print '\tgot', pprint.pprint( result )