fix testsuite regression that immediately crashed without integration tests
fix testsuite regression that immediately crashed without integration tests

In commit 08a76fdda9fc2d5e04925a94dec17132ab0a899a, distutils was
dropped. Before then, gpg_ver was a global mutable class instance,
mutated inside a function and then used. After then, it's a global
string that is... also modified inside a function and then used.

Strings cannot be modified inside functions like that. It shadows the
variable in the local scope, which means the global variable is
inaccessible now. In fact the global variable exists solely to be used
inside this function, but now it cannot be.

So, because it can be bound inside the function, it *must* be, but only
if python-gpg was installed did this actually occur. If not, we skipped
the integration tests and then tried to log the version, assuming that
the global default value of "unknown" was still bound, which is no
longer true.

SecurityInnovation/PGPy,SecurityInnovation/PGPy,SecurityInnovation/PGPy