Skip to content

Commit

Permalink
Don't break if pkg_resources.require() fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokai committed Oct 18, 2006
1 parent e456bd2 commit 7a59668
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion tests/runalldoctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import glob
import pkg_resources

pkg_resources.require('OWSLib')
try:
pkg_resources.require('OWSLib')
except (ImportError, pkg_resources.DistributionNotFound):
pass

testfiles = glob.glob('*WFS*.txt')

Expand Down
2 changes: 1 addition & 1 deletion tests/testWFSReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
try:
import pkg_resources
pkg_resources.require('OWSLib')
except ImportError:
except (ImportError, pkg_resources.DistributionNotFound):
pass

from owslib.wfs import WFSCapabilitiesReader, nspath, OGC_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion tests/testWMSReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
try:
import pkg_resources
pkg_resources.require('OWSLib')
except ImportError:
except (ImportError, pkg_resources.DistributionNotFound):
pass

from owslib.wms import WMSCapabilitiesReader
Expand Down

0 comments on commit 7a59668

Please sign in to comment.