Tests: python: enum.auto() introduced in python 3.6
[lttng-tools.git] / tests / utils / lttngtest / lttng.py
index 6829fa7076cad455569fa07b8b4eb3c2a002cf8d..2679fd1a663b3f18a44df0c8d5d1845caf39f315 100644 (file)
@@ -144,13 +144,17 @@ class _Channel(lttngctl.Channel):
         return self._domain
 
 
+@enum.unique
 class _ProcessAttribute(enum.Enum):
-    PID = (enum.auto(),)
-    VPID = (enum.auto(),)
-    UID = (enum.auto(),)
-    VUID = (enum.auto(),)
-    GID = (enum.auto(),)
-    VGID = (enum.auto(),)
+    PID = "Process ID"
+    VPID = "Virtual Process ID"
+    UID = "User ID"
+    VUID = "Virtual User ID"
+    GID = "Group ID"
+    VGID = "Virtual Group ID"
+
+    def __repr__(self):
+        return "<%s.%s>" % (self.__class__.__name__, self.name)
 
 
 def _get_process_attribute_option_name(attribute: _ProcessAttribute) -> str:
This page took 0.024272 seconds and 4 git commands to generate.