8000 Add CPython int/float tests by guilhermeleobas · Pull Request #150795 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Add CPython int/float tests #150795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
[ghstack-poisoned]
  • Loading branch information
guilhermeleobas committed Apr 23, 2025
commit 2a05d18faac79e934c2a8bdfeb813c23993b9c23
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions torch/_dynamo/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def _dynamo_test_key(self):
suffix = super()._dynamo_test_key()
test_cls = self.__class__
test_file = inspect.getfile(test_cls).split(os.sep)[-1].split(".")[0]
py_ver = re.search(r"/([\d.]+)/", inspect.getfile(test_cls))
py_ver = re.search(r"/([\d_]+)/", inspect.getfile(test_cls))
if py_ver:
py_ver = py_ver.group().strip(os.sep).replace(".", "") # type: ignore[assignment]
py_ver = py_ver.group().strip(os.sep).replace("_", "") # type: ignore[assignment]
else:
return suffix
return f"CPython{py_ver}-{test_file}-{suffix}"
Expand All @@ -173,7 +173,7 @@ def setUpClass(cls) -> None:
# Skip test if python versions doesn't match
try:
test_py_ver = tuple(
map(int, inspect.getfile(cls).split(os.sep)[-2].split("."))
map(int, inspect.getfile(cls).split(os.sep)[-2].split("_"))
)
py_ver = sys.version_info[:2]
if py_ver != test_py_ver:
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
0