File: test_GFF.py

package info (click to toggle)
python-biopython 1.54-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 25,400 kB
  • ctags: 10,975
  • sloc: python: 116,757; xml: 33,167; ansic: 8,622; sql: 1,488; makefile: 147
file content (19 lines) | stat: -rw-r--r-- 663 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
"""Test the Bio.GFF module and dependencies
"""
import os
from Bio import MissingExternalDependencyError

# only do the test if we are set up to do it. We need to have MYSQLPASS
# set and have a GFF wormbase installed (see the code in Bio/GFF/__init_.py
if not os.environ.has_key("MYSQLPASS"):
    raise MissingExternalDependencyError("Environment is not configured for this test (not important if you do not plan to use Bio.GFF).")

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
import Bio.GFF
warnings.resetwarnings()

print "Running Bio.GFF doctests..."
Bio.GFF._test()
print "Bio.GFF doctests complete."