Skip to content

Conversation

@chunkyg
Copy link
Contributor

@chunkyg chunkyg commented Mar 29, 2016

I have added an integration test to check the formatting of json.results file. Some keys are required in the result file.


def test_test_case_results_reports(self):
tempdir = tempfile.mkdtemp()
temp_json_file = os.path.join(tempdir, 'tmp.json')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this leaks the tempdir and tempfile, you should use a context manager to clean that up

You can peek at test.discovery_failure_test.BrokenImportTestCase for an example

@asottile
Copy link
Contributor

@chunkyg bump: 2 months

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants