Skip to content

Commit

Permalink
Fix time-machine tests wrong regexp matching
Browse files Browse the repository at this point in the history
  • Loading branch information
desvxx committed Jun 8, 2024
1 parent 2fdce37 commit 207ce71
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/cli_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4072,7 +4072,7 @@ def test_allow_sha1_key_sigs(self):
self.assertRegex(out, r'(?s)^.*\[INVALID\].*$')
ret, out, _ = run_proc(RNPK, ['--keyfile', data_path(PUBRING_7), '--notty', '--list-keys', '--allow-sha1-key-sigs'])
self.assertEqual(ret, 0)
self.assertRegex(out, r'(?s)^.*pub.*2024-05-27.*EXPIRES 2026.*sub.*2024-05-27.*EXPIRES 2026.*$')
self.assertRegex(out, r'(?s)^.*pub.*2024-06-03.*sub.*2024-06-03.*$')

ret, _, err = run_proc(RNP, ['--keyfile', data_path(PUBRING_7), '--notty', '--password=', '-e', src, '--output', sig])
self.assertNotEqual(ret, 0)
Expand Down
Binary file modified src/tests/data/keyrings/7/pubring.gpg
Binary file not shown.
Binary file modified src/tests/data/keyrings/7/secring.gpg
Binary file not shown.

0 comments on commit 207ce71

Please sign in to comment.