/usr/lib/python2.7/dist-packages/rpy2/tests.py is in python-rpy2 2.3.9-1.
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 32 33 | if __name__ == "__main__":
import sys, rpy2.rinterface
sys.stdout.write("rpy2 version: %s\n" % rpy2.__version__)
sys.stdout.write("built against R version: %s\n" % '-'.join(str(x) for x in rpy2.rinterface.R_VERSION_BUILD))
sys.stdout.flush()
import unittest
import rpy2.robjects.tests
import rpy2.rinterface.tests
import rpy2.rlike.tests
#import rpy2.interactive.tests
import rpy2.tests_rpy_classic
def suite():
suite_robjects = rpy2.robjects.tests.suite()
suite_rinterface = rpy2.rinterface.tests.suite()
suite_rlike = rpy2.rlike.tests.suite()
#suite_interactive = rpy2.interactive.tests.suite()
suite_rpy_classic = rpy2.tests_rpy_classic.suite()
alltests = unittest.TestSuite([suite_rinterface,
suite_robjects,
suite_rlike,
#suite_interactive,
suite_rpy_classic
])
return alltests
if __name__ == "__main__":
unittest.main(defaultTest = "suite")
|