Skip to content

FAIL: test_torch (__main__.TestDocCoverage) #27703

@gottbrath

Description

@gottbrath

🐛 Bug

after our v1.3.0 doc changes i am seeing a test failure

FAIL: test_torch (main.TestDocCoverage)

To Reproduce

Steps to reproduce the behavior:

  1. git checkout upstream master
  2. python ./test/test_docs_coverage.py

AssertionError: Items in the second set but not the first:
'real'
'imag'
'conj'
'angle' :
The lists of tensor methods documented in tensors.rst and in python are
different. Did you forget to add a new thing to tensors.rst, or whitelist
things you don't want to document?

======================================================================
FAIL: test_torch (main.TestDocCoverage)

Traceback (most recent call last):
File "./test/test_docs_coverage.py", line 73, in test_torch
don't want to document?''')
AssertionError: Items in the first set but not the second:
'promote_types'
'result_type'
'can_cast'
Items in the second set but not the first:
'quantize_per_tensor'
'quantize_per_channel' :
The lists of functions documented in torch.rst and in python are different.
Did you forget to add a new thing to torch.rst, or whitelist things you
don't want to document?


Ran 2 tests in 0.003s

FAILED (failures=2)

Expected behavior

git checkout pr-fix-doc-test-failure

gottbrath@ubuntu:~/pytorch-for-doc$ python ./test/test_docs_coverage.py
..

Ran 2 tests in 0.003s

OK

cc @ezyang

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: doc infraRelated to pytorch.org/docs, deployment of, and servingmodule: docsRelated to our documentation, both in docs/ and docblocksmodule: testsIssues related to tests (not the torch.testing module)triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions