/usr/share/pyshared/matplotlib/tests/test_basic.py is in python-matplotlib 1.1.1~rc1+git20120423-0ubuntu1.
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 19 20 21 22 23 24 25 26 27 28 29 30 31 | from nose.tools import assert_equal
from matplotlib.testing.decorators import knownfailureif
import sys
def test_simple():
assert_equal(1+1,2)
@knownfailureif(True)
def test_simple_knownfail():
assert_equal(1+1,3)
from pylab import *
def test_override_builtins():
ok_to_override = set([
'__name__',
'__doc__',
'__package__',
'any',
'all',
'sum'
])
overridden = False
for key in globals().keys():
if key in dir(sys.modules["__builtin__"]):
if (globals()[key] != getattr(sys.modules["__builtin__"], key) and
key not in ok_to_override):
print "'%s' was overridden in globals()." % key
overridden = True
assert not overridden
|