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:
parent
111d362942
commit
09cc7d3272
4 changed files with 26 additions and 29 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue