currency module requires python-sql >= 0.9
The currency_rate_sql use the feature of Select query as column that was introduced only in python-sql 0.9 [1].
Ref: https://discuss.tryton.org/t/solved-error-in-the-execution-of-unit-tests/847
[1] https://python-sql.tryton.org/bug52