Issue #23445: Fix test_gdb.python_is_optimized() for CFLAGS=-Og

-Og does not optimize the C code, it's just "fast debugging".
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index b7577de..9656010 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -72,7 +72,7 @@
     for opt in cflags.split():
         if opt.startswith('-O'):
             final_opt = opt
-    return (final_opt and final_opt != '-O0')
+    return final_opt not in ('', '-O0', '-Og')
 
 def gdb_has_frame_select():
     # Does this build of gdb have gdb.Frame.select ?