Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b37114b2f61e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8c9f06e5b5a5
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 7, 2020

  1. python3Packages.monty: fix tests

    Jonathan Ringer committed Apr 7, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dtzWill Will Dietz
    Copy the full SHA
    8c9f06e View commit details
Showing with 7 additions and 0 deletions.
  1. +7 −0 pkgs/development/python-modules/monty/default.nix
7 changes: 7 additions & 0 deletions pkgs/development/python-modules/monty/default.nix
Original file line number Diff line number Diff line change
@@ -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"))' '#'