Package Details: python-agate 1.6.2-1

Git Clone URL: https://aur.archlinux.org/python-agate.git (read-only, click to copy)
Package Base: python-agate
Description: A data analysis library that is optimized for humans instead of machines
Upstream URL: https://agate.readthedocs.org/
Licenses: MIT
Submitter: gabrielmagno
Maintainer: caleb
Last Packager: caleb
Votes: 6
Popularity: 0.000067
First Submitted: 2016-07-08 16:55
Last Updated: 2021-06-17 19:23

Latest Comments

planetmija commented on 2021-06-17 15:43

I had probably the same problem. Could add it to the github issue, but they seem to ignore this for 3 years now.

Changing language didn't work for me so I ran: yay -S python-agate --mflags "--nocheck".

======================================================================
FAIL: test_print_table_max_precision (tests.test_table.test_print_table.TestPrintTable)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/dev/shm/python-agate/src/agate-1.6.1/tests/test_table/test_print_table.py", line 84, in test_print_table_max_precision
    self.assertIn(u' 1.74… ', lines[2])
AssertionError: ' 1.74… ' not found in '| 1.745       |            1,74… |              1,72 |'

======================================================================
FAIL: test_print_bars_with_nulls (tests.test_table.test_print_bars.TestPrintBars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/dev/shm/python-agate/src/agate-1.6.1/tests/test_table/test_print_bars.py", line 100, in test_print_bars_with_nulls
    self.assertEqual(output.getvalue(), "three   two\n"
AssertionError: 'three   two\na     2.000 |:::::::\nNone      - |       \nc   [58 chars]00\n' != 'three   two\na     2,000 |:::::::\nNone      - |       \nc   [58 chars]00\n'
  three   two
- a     2.000 |:::::::
?        ^
+ a     2,000 |:::::::
?        ^
  None      - |       
  c         1 |       
              +------+
-             0  2.000
?                 ^
+             0  2,000
?                 ^


======================================================================
FAIL: test_bins_decimals (tests.test_table.test_bins.TestBins)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/dev/shm/python-agate/src/agate-1.6.1/tests/test_table/test_bins.py", line 113, in test_bins_decimals
    self.assertSequenceEqual(new_table.rows[0], ['[0.0 - 0.1)', 10])
AssertionError: Sequences differ: <agate.rows.Row object at 0x7f76c12c4e80> != ['[0.0 - 0.1)', 10]

First differing element 0:
'[0,0 - 0,1)'
'[0.0 - 0.1)'

- <agate.rows.Row object at 0x7f76c12c4e80>
+ ['[0.0 - 0.1)', 10]

======================================================================
FAIL: test_bins_nulls (tests.test_table.test_bins.TestBins)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/dev/shm/python-agate/src/agate-1.6.1/tests/test_table/test_bins.py", line 130, in test_bins_nulls
    self.assertSequenceEqual(new_table.rows[0], ['[0.0 - 0.1)', 10])
AssertionError: Sequences differ: <agate.rows.Row object at 0x7f76c124c540> != ['[0.0 - 0.1)', 10]

First differing element 0:
'[0,0 - 0,1)'
'[0.0 - 0.1)'

- <agate.rows.Row object at 0x7f76c124c540>
+ ['[0.0 - 0.1)', 10]

----------------------------------------------------------------------
Ran 450 tests in 1.373s

FAILED (failures=4, skipped=24)
Test failed: <unittest.runner.TextTestResult run=450 errors=0 failures=4>

ktw commented on 2020-03-23 14:11

@caleb Thanks for looking into this. I guess we wait for upstream; for now I've resolved the issue by running my aur helper via LANG=en_US yay ...

caleb commented on 2020-03-23 12:14

@ktw This builds fine for locales than don't change the decimal separator. You can either disable the test suite (makepkg --nocheck) and/or report a bug upstream that they should force the locale in their test suite such that it will produce reproducible results.

I could force a locale reset in the check function too, but I think that might be me into trouble on systems that didn't have whatever locale I pick. If you have any examples elsewhere demonstrating how this should be fixed I'm happy to oblige, but given my current knowledge I think this is an upstream bug.

P.S. This appears to already be reported upstream as it is also an issue on Debian.

ktw commented on 2020-03-22 16:10

Build is failing for me -- the test cases fail due to locale issues? E.g. here is the result of test_bins_decimals:

======================================================================
FAIL: test_bins_decimals (tests.test_table.test_bins.TestBins)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kacper/.cache/yay/python-agate/src/agate-1.6.1/tests/test_table/test_bins.py", line 113, in test_bins_decimals
    self.assertSequenceEqual(new_table.rows[0], ['[0.0 - 0.1)', 10])
AssertionError: Sequences differ: <agate.rows.Row object at 0x7f0f93d09d40> != ['[0.0 - 0.1)', 10]

First differing element 0:
'[0,0 - 0,1)'
'[0.0 - 0.1)'

- <agate.rows.Row object at 0x7f0f93d09d40>
+ ['[0.0 - 0.1)', 10]

This is on a system where LANG=pl_PL.UTF-8.