In particular, it won't if we're being imported by something running from doctest.
Fixes test failure in D3PDMakerCoreComps.