Skip to content

Add subname to console output for assertExpected#10559

Closed
driazati wants to merge 1 commit intopytorch:masterfrom
driazati:test
Closed

Add subname to console output for assertExpected#10559
driazati wants to merge 1 commit intopytorch:masterfrom
driazati:test

Conversation

@driazati
Copy link
Contributor

Running --accept on a test doesn't tell you explicitly which sub-test is being updated, this PR fixes that

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
("I got this output for {}{}:\n\n{}\n\n"
"No expect file exists; to accept the current output, run:\n"
"python {} {} --accept").format(munged_id, s, __main__.__file__, munged_id))
"python {} {} --accept").format(munged_id, subname_output, s, __main__.__file__, munged_id))

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

Thanks, and nice catch!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

driazati has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
Running `--accept` on a test doesn't tell you explicitly which sub-test is being updated, this PR fixes that
Pull Request resolved: pytorch#10559

Differential Revision: D9353977

Pulled By: driazati

fbshipit-source-id: a9d4014386ff0fe388a092f3dcf50f157e460f04
@ezyang ezyang added the merged label Jun 26, 2019
@driazati driazati deleted the test branch June 11, 2021 03:33
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.

3 participants