Source: ruby-pygments.rb Version: 1.2.1-1 Severity: serious Tags: ftbfs Hello, pygments has been recently updated to its latest upstream release (2.7.1), and that's causing ruby-pygments to FTBFS with tests errors:
``` test_highlight_works_with_larger_files: F =============================================================================== Failure: test_highlight_works_with_larger_files(PygmentsHighlightTest) /build/ruby-pygments.rb-1.2.1/test/test_pygments.rb:38:in `test_highlight_works_with_larger_files' 35: def test_highlight_works_with_larger_files 36: code = P.highlight(REDIS_CODE) 37: assert_match 'used_memory_peak_human', code => 38: assert_equal 458511, code.bytesize.to_i 39: end 40: 41: def test_highlight_works_with_null_bytes <458511> expected but was <462036> diff: ? 458511 ? 62036 =============================================================================== : (0.242569) ``` and ``` test_highlight_works_with_single_character_input: F =============================================================================== Failure: test_highlight_works_with_single_character_input(PygmentsHighlightTest): </a\n<\/pre>/> was expected to be =~ <"<div class=\"highlight\"><pre><span></span><span class=\"err\">a</span>\n" + "</pre></div>">. /build/ruby-pygments.rb-1.2.1/test/test_pygments.rb:89:in `test_highlight_works_with_single_character_input' 86: 87: def test_highlight_works_with_single_character_input 88: code = P.highlight("a") => 89: assert_match "a\n</pre>", code 90: end 91: 92: def test_highlight_works_with_trailing_newline =============================================================================== : (0.019281) ``` I'm not familiar enough with ruby code to be able to tell how to fix it, but from the error message, it appears that pygments is producing a different output than the one expected by ruby-pygments.rb testsuite. I checked on the upstream repo and it doesnt look like anyone update the code, nor prepared a patch, to support pygments. Until this package is fixed, pygments and a considerable set of packages, cannot migrate to test, so i appreciate you fixing it quickly. Regards, sandro -- System Information: Debian Release: 10.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.6.0-1-amd64 (SMP w/8 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled