Skip to content

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Jun 17, 2021

Stack from ghstack:

Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a doctest. @mruberry do you know why we don't have such a check?

Differential Revision: D29556353

Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jun 17, 2021

💊 CI failures summary and remediations

As of commit 56c045d (more details on the Dr. CI page and at hud.pytorch.org/pr/60163):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


Preview docs built from this PR

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

pmeier added a commit that referenced this pull request Jun 17, 2021
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

ghstack-source-id: 89b43a5
Pull Request resolved: #60163
@pmeier pmeier requested a review from mruberry June 17, 2021 07:08
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

[ghstack-poisoned]
@pmeier pmeier added the module: testing Issues related to the torch.testing module (not tests) label Jun 21, 2021
pmeier added 4 commits June 21, 2021 12:51
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

[ghstack-poisoned]
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

[ghstack-poisoned]
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

[ghstack-poisoned]
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

[ghstack-poisoned]
Copy link
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Neat.

We do have some doc testing, but I'm never sure how it works. @peterbell10 just started running some examples as tests, maybe check with him?

Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

[ghstack-poisoned]
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

[ghstack-poisoned]
@pmeier
Copy link
Collaborator Author

pmeier commented Jun 24, 2021

I've added a doctest for torch.testing.assert_close.

Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check?

[ghstack-poisoned]
@mruberry
Copy link
Collaborator

mruberry commented Jul 6, 2021

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

@facebook-github-bot
Copy link
Contributor

@mruberry merged this pull request in 76d9e68.

@facebook-github-bot facebook-github-bot deleted the gh/pmeier/22/head branch July 11, 2021 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged module: testing Issues related to the torch.testing module (not tests) open source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants