Skip to content
Browse files

Raise MissingExternalDependencyError in CDAO unit tests if librdf is …

…not installed.
  • Loading branch information...
1 parent 2dd611b commit c48e2890b3a9ada18f9c26ea431caf03e1cbbd4b @bendmorris bendmorris committed with etal Feb 13, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 Tests/test_Phylo_CDAO.py
View
7 Tests/test_Phylo_CDAO.py
@@ -10,9 +10,14 @@
import os
import tempfile
import unittest
+from Bio import MissingExternalDependencyError
import Bio.Phylo as bp
-from Bio.Phylo import CDAO, CDAOIO
+from Bio.Phylo import CDAO
+try:
+ from Bio.Phylo import CDAOIO
+except:
+ raise MissingExternalDependencyError('Install the librdf Python bindings if you want to use the CDAO tree format.')
# Example CDAO files
cdao_files = (

0 comments on commit c48e289

Please sign in to comment.
Something went wrong with that request. Please try again.