Skip to content

generate_opcheck_tests doesn't work with pytest-style test suites #108927

@ezyang

Description

@ezyang

🐛 Describe the bug

There are two problems that I immediately ran into:

  1. pytest supports test classes that don't subclass unittest.TestCase, but generate_opcheck_tests requires it
  2. whatever process we use to generate new test methods doesn't preserve pytest mark parametrize, so you end up with test methods that don't get their parametrized arguments filled in

There may be other problems

cc @zou3519

Versions

main

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: testingIssues related to the torch.testing module (not tests)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