Only run foaf tests if librdf is installed
This commit is contained in:
parent
7f1f432f73
commit
c71a974928
12
INSTALL
12
INSTALL
@ -5,10 +5,14 @@ You'll need at least Python 2.2 installed on your system, we recommend
|
|||||||
Python 2.4 though as there may be bugs with the earlier libraries.
|
Python 2.4 though as there may be bugs with the earlier libraries.
|
||||||
|
|
||||||
Everything Pythonesque Planet need to provide basic operation should be
|
Everything Pythonesque Planet need to provide basic operation should be
|
||||||
included in the distribution. Usage of XSLT requires either xsltproc
|
included in the distribution. Additionally:
|
||||||
or python-libxslt. The current interface to filters written in
|
* Usage of XSLT requires either xsltproc or python-libxslt.
|
||||||
non-templating languages (e.g., python) uses the subprocess module
|
* The current interface to filters written in non-templating languages
|
||||||
which was introduced in Python 2.4.
|
(e.g., python) uses the subprocess module which was introduced in
|
||||||
|
Python 2.4.
|
||||||
|
* Usage of FOAF as a reading list requires librdf.
|
||||||
|
|
||||||
|
Instructions:
|
||||||
|
|
||||||
i.
|
i.
|
||||||
First you'll need to extract the files into a folder somewhere.
|
First you'll need to extract the files into a folder somewhere.
|
||||||
|
@ -73,5 +73,12 @@ class FoafTest(unittest.TestCase):
|
|||||||
foaf2config(test, blogroll, self.config)
|
foaf2config(test, blogroll, self.config)
|
||||||
self.assertEqual('Danny Ayers', self.config.get(testfeed, 'name'))
|
self.assertEqual('Danny Ayers', self.config.get(testfeed, 'name'))
|
||||||
|
|
||||||
|
# these tests only make sense if libRDF is installed
|
||||||
|
try:
|
||||||
|
import RDF
|
||||||
|
except:
|
||||||
|
for key in FoafTest.__dict__.keys():
|
||||||
|
if key.startswith('test_'): delattr(FoafTest, key)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user