Changed pydoc's output to not show an absolute path.

- The absolute path was causing tools_test.py to fail within
  test_distributions.py.
This commit is contained in:
Andrew Hamilton 2017-09-05 19:24:31 +01:00
parent 111d362942
commit 09cc7d3272
4 changed files with 26 additions and 29 deletions

View file

@ -62,11 +62,7 @@ class ToolsTestCase(unittest.TestCase):
with self.subTest(input_filename=input_filename):
status, result = run_tool(tool, input_filename)
golden_path = result_path(tool, input_filename)
text = widget_to_string(result)
with chdir(os.path.join(VIGIL_ROOT, "golden-files")):
cwd = os.getcwd()
text = text.replace(cwd, "/CWD")
golden.assertGolden(text, golden_path)
golden.assertGolden(widget_to_string(result), golden_path)
self.assertEqual(status, expected_status)
def test_metadata(self):