44
44
my_gpg = gpg.GPGStrategy(FakeConfig())
45
45
self.assertRaises(errors.SigningFailed, my_gpg.sign, 'content')
49
49
my_gpg = gpg.GPGStrategy(FakeConfig())
52
50
if sys.platform == 'win32':
53
51
# Windows doesn't come with cat, and we don't require it
54
52
# so lets try using python instead.
56
54
# It is too much work to make sys.stdout be in binary mode.
57
55
# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65443
58
56
my_gpg._command_line = lambda:[sys.executable, '-c',