hgrecco/pint — pull request #1 by fish2000 (2012-07-26 20:09:08+00:00)
Title: Data file is included now

... with this patch, the file can be found in source tarballs that are generated and/or cheese-shopped using setup.py -- I haven't tried to upload anything from my fork, as per decorum -- and it makes its way properly into the `site-packages` directory into which Pint is itself installed (via setup.py/PIP/sleazy_install).

* `python setup.py install` works ok
* `python tests/test_pint.py` generates two errors that I believe are previously existent.

output from the tests in question follows:

ASIO-OTUS:pint[master]$ python tests/test_pint.py
....F.........E...................
======================================================================
ERROR: test_quantity_abs_round (__main__.TestMCO)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_pint.py", line 345, in test_quantity_abs_round
rx = fun(x)
File "/Users/fish/Dropbox/pint/pint/pint.py", line 671, in __float__
raise DimensionalityError(self.units, 'dimensionless')
DimensionalityError: Cannot convert from 'meter' to 'dimensionless'.

======================================================================
FAIL: test_dimensionless_units (__main__.TestMCO)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_pint.py", line 391, in test_dimensionless_units
self.assertTrue(Q_(2 * math.pi, 'radian') == Q_(360, 'degree'))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 34 tests in 0.901s

FAILED (failures=1, errors=1)