python3Packages.monty: fix tests
This commit is contained in:
parent
b37114b2f6
commit
8c9f06e5b5
@ -29,6 +29,13 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [ lsof nose numpy msgpack coverage coveralls pymongo];
|
checkInputs = [ lsof nose numpy msgpack coverage coveralls pymongo];
|
||||||
propagatedBuildInputs = [ six ruamel_yaml ];
|
propagatedBuildInputs = [ six ruamel_yaml ];
|
||||||
|
|
||||||
|
# test suite tries to decode bytes, but msgpack now returns a str
|
||||||
|
# https://github.com/materialsvirtuallab/monty/pull/121
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace tests/test_serialization.py \
|
||||||
|
--replace ".decode('utf-8')" ""
|
||||||
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
substituteInPlace tests/test_os.py \
|
substituteInPlace tests/test_os.py \
|
||||||
--replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#'
|
--replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#'
|
||||||
|
Loading…
Reference in New Issue
Block a user