Move inspectlib tests to conform with naming convention

This commit is contained in:
Erik Johnson 2018-08-10 09:37:50 -05:00
parent 81e38239fe
commit fa76cb6ada
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F
4 changed files with 6 additions and 2 deletions

View file

@ -78,7 +78,10 @@ def no_symlinks():
return not HAS_SYMLINKS
output = ''
try:
output = subprocess.check_output('git config --get core.symlinks', shell=True)
output = subprocess.Popen(
['git', 'config', '--get', 'core.symlinks'],
cwd=TMP,
stdout=subprocess.PIPE).communicate()[0]
except OSError as exc:
if exc.errno != errno.ENOENT:
raise

View file

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View file

@ -71,7 +71,7 @@ class InspectorCollectorTestCase(TestCase):
inspector = Inspector(cachedir=os.sep + 'test',
piddir=os.sep + 'test',
pidfilename='bar.pid')
tree_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'inspectlib', 'tree_test')
tree_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tree_test')
expected_tree = ([os.sep + os.sep.join(['a', 'a', 'dummy.a']),
os.sep + os.sep.join(['a', 'b', 'dummy.b']),
os.sep + os.sep.join(['b', 'b.1']),