Skip to content

test_text_proper_indentation broken with file 5.43

I am currently updating diffoscope for nixos and noticed that 44ebd188 breaks with file 5.43 while claiming to fix the test.

diffoscope>
diffoscope> >       assert out == get_data("archive12.diff.txt")
diffoscope> E       assert '--- archive1.tar\n+++ archive2.tar\n├── file list\n│ @@ -1 +1 @@\n│ --rw-r--r--   0 lamby     (1000) lamby     (1000)       25 2021-09-12 11:53:14.000000 compressed.gz\n│ +-rw-r--r--   0 lamby     (1000) lamby     (1000)       36 2021-09-12 11:59:26.000000 compressed.gz\n├── compressed.gz\n│ ├── filetype from file(1)\n│ │ @@ -1 +1 @@\n│ │ -gzip compressed data, last modified: Sun Mar 19 22:26:58 2017, from Unix, truncated\n│ │ +gzip compressed data, was "compressed", last modified: Sun Sep 12 11:59:26 2021, max compression, from Unix, truncated\n│ ├── compressed\n│ │ @@ -1 +1 @@\n│ │ -asdf\n│ │ +bsdf\n' == '--- archive1.tar\n+++ archive2.tar\n├── file list\n│ @@ -1 +1 @@\n│ --rw-r--r--   0 lamby     (1000) lamby     (1000)       25 2021-09-12 11:53:14.000000 compressed.gz\n│ +-rw-r--r--   0 lamby     (1000) lamby     (1000)       36 2021-09-12 11:59:26.000000 compressed.gz\n├── compressed.gz\n│ ├── filetype from file(1)\n│ │ @@ -1 +1 @@\n│ │ -gzip compressed data, last modified: Sun Mar 19 22:26:58 2017, from Unix\n│ │ +gzip compressed data, was "compressed", last modified: Sun Sep 12 11:59:26 2021, max compression, from Unix\n│ ├── compressed\n│ │ @@ -1 +1 @@\n│ │ -asdf\n│ │ +bsdf\n'
diffoscope> E           --- archive1.tar
diffoscope> E           +++ archive2.tar
diffoscope> E           ├── file list
diffoscope> E           │ @@ -1 +1 @@
diffoscope> E           │ --rw-r--r--   0 lamby     (1000) lamby     (1000)       25 2021-09-12 11:53:14.000000 compressed.gz
diffoscope> E           │ +-rw-r--r--   0 lamby     (1000) lamby     (1000)       36 2021-09-12 11:59:26.000000 compressed.gz
diffoscope> E           ├── compressed.gz
diffoscope> E           │ ├── filetype from file(1)
diffoscope> E           │ │ @@ -1 +1 @@
diffoscope> E         - │ │ -gzip compressed data, last modified: Sun Mar 19 22:26:58 2017, from Unix
diffoscope> E         + │ │ -gzip compressed data, last modified: Sun Mar 19 22:26:58 2017, from Unix, truncated
diffoscope> E         ?                                                                              +++++++++++
diffoscope> E         - │ │ +gzip compressed data, was "compressed", last modified: Sun Sep 12 11:59:26 2021, max compression, from Unix
diffoscope> E         + │ │ +gzip compressed data, was "compressed", last modified: Sun Sep 12 11:59:26 2021, max compression, from Unix, truncated
diffoscope> E         ?                                                                                                                 +++++++++++
diffoscope> E           │ ├── compressed
diffoscope> E           │ │ @@ -1 +1 @@
diffoscope> E           │ │ -asdf
diffoscope> E           │ │ +bsdf
diffoscope>
diffoscope> tests/test_presenters.py:92: AssertionError
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information