The GnuPG tests require a complicated setup to allow for gpg to import a secret key, then use it without any human interaction. gpgsign changes so rarely that it doesn't need to be tested as part of autopkgtest. In the test suite for 1.0.7 and older, the only way to disable gpg in the test suite is to set the env var TRAVIS_OS_NAME=osx