mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-02-01 23:07:28 -08:00
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
48 lines
1.6 KiB
Diff
48 lines
1.6 KiB
Diff
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())
|