diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2011-08-05 17:05:11 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2011-08-05 17:05:11 +0000 |
commit | 0cfd40f1157089bf90d59bfb480737c1e10011f1 (patch) | |
tree | 88279069bfc3fb95bfc3669a7a7ec7ee69200549 /dev-python/pygraphviz/files/pygraphviz-1.1-avoid_tests.patch | |
parent | Move png to mirrors (diff) | |
download | gentoo-2-0cfd40f1157089bf90d59bfb480737c1e10011f1.tar.gz gentoo-2-0cfd40f1157089bf90d59bfb480737c1e10011f1.tar.bz2 gentoo-2-0cfd40f1157089bf90d59bfb480737c1e10011f1.zip |
Reintroduced avoid testing thanks to Arfrever
(Portage version: 2.1.10.10/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pygraphviz/files/pygraphviz-1.1-avoid_tests.patch')
-rw-r--r-- | dev-python/pygraphviz/files/pygraphviz-1.1-avoid_tests.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/pygraphviz/files/pygraphviz-1.1-avoid_tests.patch b/dev-python/pygraphviz/files/pygraphviz-1.1-avoid_tests.patch new file mode 100644 index 000000000000..0d52e968bf0a --- /dev/null +++ b/dev-python/pygraphviz/files/pygraphviz-1.1-avoid_tests.patch @@ -0,0 +1,41 @@ +--- pygraphviz/agraph.py ++++ pygraphviz/agraph.py +@@ -1767,29 +1767,3 @@ + value.decode(self.encoding)) + except KeyError: # gv.agxget returned KeyError, skip + continue +- +- +- +-def _test_suite(): +- import doctest +- suite = doctest.DocFileSuite('tests/graph.txt', +- 'tests/attributes.txt', +- 'tests/layout_draw.txt', +- 'tests/subgraph.txt', +- package='pygraphviz') +- doctest.testmod() # test docstrings in module +- return suite +- +- +-if __name__ == "__main__": +- import os +- import sys +- import unittest +- if sys.version_info[:2] < (2, 4): +- print "Python version 2.4 or later required for tests (%d.%d detected)." % sys.version_info[:2] +- sys.exit(-1) +- # directory of package (relative to this) +- nxbase=sys.path[0]+os.sep+os.pardir +- sys.path.insert(0,nxbase) # prepend to search path +- unittest.TextTestRunner().run(_test_suite()) +- +--- pygraphviz/__init__.py ++++ pygraphviz/__init__.py +@@ -67,6 +67,3 @@ + print "pygraphviz-"+__version__ + neato=_get_prog('neato') + os.system(neato+' -V') +- +-# import tests: run as pygraphviz.test() +-from tests import run as test |