Bug#1102658: diffoscope: Tests fail with OpenSSH 10.0p1

Colin Watson cjwatson at debian.org
Fri Apr 11 15:38:33 BST 2025


Source: diffoscope
Version: 293
Severity: important

I'm preparing an upload of OpenSSH 10.0p1 to unstable, and while testing 
it I found that diffoscope's tests fail as follows:

  _________________________________ test_diff12 __________________________________

  differences12 = []

      @skip_unless_tool_is_at_least("ssh-keygen", openssh_version, "6.9")
      @skip_unless_tool_is_at_most("ssh-keygen", openssh_version, "9.7p1")
      def test_diff12(differences12):
  >       assert_diff(differences12[0], "openssh_pub_key_expected_diff_12")
  E       IndexError: list index out of range

  differences12 = []

  tests/comparators/test_openssh_pub_key.py:79: IndexError

Looking at a git clone of diffoscope:

  $ PYTHONPATH=. python3
  Python 3.13.2 (main, Mar 29 2025, 10:04:43) [GCC 14.2.0] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from tests.utils.versions import Version
  >>> Version('10.0p1') < Version('9.7p1')
  False
  >>> Version('10.0p1') > Version('9.7p1')
  False

I haven't dug through far enough to know exactly what the problem is, 
but the above clearly doesn't make sense.  Please could you have a look?

Thanks,

-- 
Colin Watson (he/him)                              [cjwatson at debian.org]

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.21-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the Reproducible-builds mailing list