@@ -29,11 +29,16 @@ TEST_CASE("RemoteValue matches the ExtRemoteTyped object model.", "[integration]
2929
3030 DbgEngContext ctx (dump.pClient .Get ());
3131
32+ // The dump's Python version varies across the CI matrix (2.7, 3.11, 3.14, ...),
33+ // so the module name is resolved dynamically rather than hardcoded.
34+ auto pyTypeTypeSym = ctx.qualifyPythonSymbol (" PyType_Type" );
35+ REQUIRE (pyTypeTypeSym.has_value ());
36+
3237 SECTION (" pointerSize / evaluate / qualify" )
3338 {
3439 REQUIRE (ctx.pointerSize () == 8 );
3540
36- auto addr = ctx.evaluateU64 (" python314!PyType_Type " );
41+ auto addr = ctx.evaluateU64 (*pyTypeTypeSym );
3742 REQUIRE (addr.has_value ());
3843 REQUIRE (*addr != 0 );
3944
@@ -44,7 +49,7 @@ TEST_CASE("RemoteValue matches the ExtRemoteTyped object model.", "[integration]
4449
4550 SECTION (" scalar + field parity against the object model" )
4651 {
47- auto addrOpt = ctx.evaluateU64 (" python314!PyType_Type " );
52+ auto addrOpt = ctx.evaluateU64 (*pyTypeTypeSym );
4853 REQUIRE (addrOpt.has_value ());
4954 const std::uint64_t addr = *addrOpt;
5055
@@ -67,7 +72,7 @@ TEST_CASE("RemoteValue matches the ExtRemoteTyped object model.", "[integration]
6772
6873 SECTION (" typeSize via GetTypeSize (the cast-expression-site primitive)" )
6974 {
70- auto addr = ctx.evaluateU64 (" python314!PyType_Type " );
75+ auto addr = ctx.evaluateU64 (*pyTypeTypeSym );
7176 REQUIRE (addr.has_value ());
7277 // PyObject header is 2 pointers on a GIL build (proven 0x10 in Phase 0).
7378 REQUIRE (RemoteValue (ctx, " PyObject" , *addr).typeSize ()
@@ -76,7 +81,7 @@ TEST_CASE("RemoteValue matches the ExtRemoteTyped object model.", "[integration]
7681
7782 SECTION (" expected-absent field returns nullopt, does not throw" )
7883 {
79- auto addr = ctx.evaluateU64 (" python314!PyType_Type " );
84+ auto addr = ctx.evaluateU64 (*pyTypeTypeSym );
8085 REQUIRE (addr.has_value ());
8186 RemoteValue rv (ctx, " _object" , *addr);
8287 REQUIRE_FALSE (rv.field (" field_that_does_not_exist" ).has_value ());
0 commit comments