[Python-modules-commits] [python-graphviz] 03/06: dh_auto_test runs the tests in a subdirectory, meaning the assumption that there is a setup.py file doesn't apply.
Diane Trout
diane at moszumanska.debian.org
Fri Jan 6 01:15:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
diane pushed a commit to branch master
in repository python-graphviz.
commit 88b56607e29c1ea7efda0fa0635ee754f17e0bd4
Author: Diane Trout <diane at ghic.org>
Date: Thu Jan 5 17:05:15 2017 -0800
dh_auto_test runs the tests in a subdirectory, meaning the assumption that there is a setup.py file doesn't apply.
Forwarded: https://github.com/xflr6/graphviz/pull/29
---
tests/test_tools.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/test_tools.py b/tests/test_tools.py
index e280bcf..e7113c6 100644
--- a/tests/test_tools.py
+++ b/tests/test_tools.py
@@ -2,11 +2,21 @@
import unittest2 as unittest
import os
+import stat
from graphviz.tools import mkdirs
class TestMkdirs(unittest.TestCase):
+ def setUp(self):
+ if not os.path.exists('setup.py'):
+ f = open('setup.py', 'w')
+ f.close()
+
+ def tearDown(self):
+ info = os.stat('setup.py')
+ if info.st_size == 0:
+ os.unlink('setup.py')
@staticmethod
def _dirnames(path=os.curdir):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-graphviz.git
More information about the Python-modules-commits
mailing list