/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2019-03-08 22:57:26 UTC
  • Revision ID: teddy@recompile.se-20190308225726-9tmoaw98l7dmzteh
mandos-ctl: Bug fix: close an open file

* mandos-ctl (TestSetSecretCmd): Don't open /dev/null in the class
                                 definition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1101
1101
class TestSetSecretCmd(TestValueArgumentPropertyCmd):
1102
1102
    command = SetSecretCmd
1103
1103
    property = "Secret"
1104
 
    values_to_set = [open("/dev/null", "rb"),
 
1104
    values_to_set = [io.BytesIO(b""),
1105
1105
                     io.BytesIO(b"secret\0xyzzy\nbar")]
1106
1106
    values_to_get = [b"", b"secret\0xyzzy\nbar"]
1107
1107