diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-04-06 12:21:27 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-04-07 10:12:14 -0700 |
commit | 8c9f06e5b5a54dd96e10b051fa5ebb78962ec04d (patch) | |
tree | a95f80d7256b913597b642846e1413ab7ba98bf9 /pkgs | |
parent | b37114b2f61ea0fd2598ba2315e7c25c559038c7 (diff) | |
download | nixpkgs-8c9f06e5b5a54dd96e10b051fa5ebb78962ec04d.tar nixpkgs-8c9f06e5b5a54dd96e10b051fa5ebb78962ec04d.tar.gz nixpkgs-8c9f06e5b5a54dd96e10b051fa5ebb78962ec04d.tar.bz2 nixpkgs-8c9f06e5b5a54dd96e10b051fa5ebb78962ec04d.tar.lz nixpkgs-8c9f06e5b5a54dd96e10b051fa5ebb78962ec04d.tar.xz nixpkgs-8c9f06e5b5a54dd96e10b051fa5ebb78962ec04d.tar.zst nixpkgs-8c9f06e5b5a54dd96e10b051fa5ebb78962ec04d.zip |
python3Packages.monty: fix tests
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/monty/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/monty/default.nix b/pkgs/development/python-modules/monty/default.nix index 427f0af4573..fb84847acff 100644 --- a/pkgs/development/python-modules/monty/default.nix +++ b/pkgs/development/python-modules/monty/default.nix @@ -29,6 +29,13 @@ buildPythonPackage rec { checkInputs = [ lsof nose numpy msgpack coverage coveralls pymongo]; 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 = '' substituteInPlace tests/test_os.py \ --replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#' |