initial/predictions/initial_0/sphinx-doc__sphinx-9281_eval.sh
#!/bin/bash
set -uxo pipefail
source /opt/miniconda3/bin/activate
conda activate testbed
cd /testbed
git config --global --add safe.directory /testbed
cd /testbed
git status
git show
git diff 8ec06e9a1bd862cd713b9db748e039ccc7b3e15b
source /opt/miniconda3/bin/activate
conda activate testbed
python -m pip install -e .[test]
git checkout 8ec06e9a1bd862cd713b9db748e039ccc7b3e15b tests/test_util_inspect.py
git apply -v - <<'EOF_114329324912'
diff --git a/tests/test_util_inspect.py b/tests/test_util_inspect.py
--- a/tests/test_util_inspect.py
+++ b/tests/test_util_inspect.py
@@ -10,6 +10,7 @@
 
 import ast
 import datetime
+import enum
 import functools
 import sys
 import types
@@ -516,6 +517,14 @@ def __repr__(self):
     assert "<CustomType(2)>: 2" in description
 
 
+def test_object_description_enum():
+    class MyEnum(enum.Enum):
+        FOO = 1
+        BAR = 2
+
+    assert inspect.object_description(MyEnum.FOO) == "MyEnum.FOO"
+
+
 def test_getslots():
     class Foo:
         pass

EOF_114329324912
tox --current-env -epy39 -v -- tests/test_util_inspect.py
git checkout 8ec06e9a1bd862cd713b9db748e039ccc7b3e15b tests/test_util_inspect.py
