* [gentoo-commits] gentoo-x86 commit in dev-python/pygraphviz/files: pygraphviz-1.2-avoid_tests.patch
@ 2013-12-29 0:55 Justin Lecher (jlec)
0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2013-12-29 0:55 UTC (permalink / raw
To: gentoo-commits
jlec 13/12/29 00:55:28
Added: pygraphviz-1.2-avoid_tests.patch
Log:
dev-python/pygraphviz: Version Bump
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Revision Changes Path
1.1 dev-python/pygraphviz/files/pygraphviz-1.2-avoid_tests.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygraphviz/files/pygraphviz-1.2-avoid_tests.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygraphviz/files/pygraphviz-1.2-avoid_tests.patch?rev=1.1&content-type=text/plain
Index: pygraphviz-1.2-avoid_tests.patch
===================================================================
pygraphviz/__init__.py | 2 --
pygraphviz/agraph.py | 25 -------------------------
2 files changed, 27 deletions(-)
diff --git a/pygraphviz/__init__.py b/pygraphviz/__init__.py
index a807801..33f727e 100644
--- a/pygraphviz/__init__.py
+++ b/pygraphviz/__init__.py
@@ -68,5 +68,3 @@ def version():
neato=_get_prog('neato')
os.system(neato+' -V')
-# import tests: run as pygraphviz.test()
-from tests import run as test
diff --git a/pygraphviz/agraph.py b/pygraphviz/agraph.py
index c9f735b..90a661e 100644
--- a/pygraphviz/agraph.py
+++ b/pygraphviz/agraph.py
@@ -1771,28 +1771,3 @@ class ItemAttribute(Attribute):
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())
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-29 0:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-29 0:55 [gentoo-commits] gentoo-x86 commit in dev-python/pygraphviz/files: pygraphviz-1.2-avoid_tests.patch Justin Lecher (jlec)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox