The test to check that invalid options are not passed to GPG fails when GPG version 2 is used.
Changes are as follows:
Update _meta class which sets GPG binary version to use a _util function to parse the value.
Update original test to be monkey patched to ensure the test uses GPG version 1.
Add a new test for GPG version 2 with the no longer valid option removed from the expected result.
The test to check that invalid options are not passed to GPG fails when GPG version 2 is used. Changes are as follows: Update _meta class which sets GPG binary version to use a _util function to parse the value. Update original test to be monkey patched to ensure the test uses GPG version 1. Add a new test for GPG version 2 with the no longer valid option removed from the expected result.
https://github.com/isislovecruft/python-gnupg/commit/ae5cb33d6348de6afedb6f0dc82c0dd041635db5 is the commit which changed this behaviour.