[test] Make environment variable name better (#97356)

This PR intends to use better (or correct?) environment variable name (`TORCH_DOCTEST_ANOMALY` instead of `TORCH_DOCTEST_ANOMOLY`) in test.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97356
Approved by: https://github.com/malfet, https://github.com/kit1980
diff --git a/test/run_test.py b/test/run_test.py
index 19fe4a7..097dc5e 100755
--- a/test/run_test.py
+++ b/test/run_test.py
@@ -743,7 +743,7 @@
     if 0:
         # TODO: could try to enable some of these
         os.environ["TORCH_DOCTEST_QUANTIZED_DYNAMIC"] = "1"
-        os.environ["TORCH_DOCTEST_ANOMOLY"] = "1"
+        os.environ["TORCH_DOCTEST_ANOMALY"] = "1"
         os.environ["TORCH_DOCTEST_AUTOGRAD"] = "1"
         os.environ["TORCH_DOCTEST_HUB"] = "1"
         os.environ["TORCH_DOCTEST_DATALOADER"] = "1"
diff --git a/torch/autograd/anomaly_mode.py b/torch/autograd/anomaly_mode.py
index fea16a6..c0eb56f 100644
--- a/torch/autograd/anomaly_mode.py
+++ b/torch/autograd/anomaly_mode.py
@@ -23,7 +23,7 @@
 
     Example:
 
-        >>> # xdoctest: +REQUIRES(env:TORCH_DOCTEST_ANOMOLY)
+        >>> # xdoctest: +REQUIRES(env:TORCH_DOCTEST_ANOMALY)
         >>> import torch
         >>> from torch import autograd
         >>> class MyFunc(autograd.Function):