mirror of
https://github.com/biopython/biopython.git
synced 2025-10-20 13:43:47 +08:00
Skip test_mmtf.py if mmtf is missing
This commit is contained in:
@ -13,7 +13,14 @@ import tempfile
|
||||
import unittest
|
||||
import warnings
|
||||
|
||||
import mmtf
|
||||
try:
|
||||
import mmtf
|
||||
except ImportError:
|
||||
from Bio import MissingPythonDependencyError
|
||||
|
||||
raise MissingPythonDependencyError(
|
||||
"Install mmtf-python to use Bio.PDB.mmtf"
|
||||
) from None
|
||||
|
||||
from Bio.PDB import PDBParser
|
||||
from Bio.PDB import Select
|
||||
|
Reference in New Issue
Block a user