python3Packages.zcs: patch to fix the test
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
parent
1617337b74
commit
b438b68cb4
2 changed files with 17 additions and 0 deletions
|
@ -15,6 +15,10 @@ buildPythonPackage rec {
|
||||||
sha256 = "sha256-ZoQgAaJy3kKHLljyKA0Oo/D1kefE8X9FlsGDSNt1nPw=";
|
sha256 = "sha256-ZoQgAaJy3kKHLljyKA0Oo/D1kefE8X9FlsGDSNt1nPw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./fix-test-yaml.patch
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ yacs ];
|
propagatedBuildInputs = [ yacs ];
|
||||||
|
|
||||||
pythonImportsCheck = [ "zcs" ];
|
pythonImportsCheck = [ "zcs" ];
|
||||||
|
|
13
pkgs/development/python-modules/zcs/fix-test-yaml.patch
Normal file
13
pkgs/development/python-modules/zcs/fix-test-yaml.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/test/test_zcs.py b/test/test_zcs.py
|
||||||
|
index e4981d3..893999f 100644
|
||||||
|
--- a/test/test_zcs.py
|
||||||
|
+++ b/test/test_zcs.py
|
||||||
|
@@ -65,7 +65,7 @@ class TestCfgNode(unittest.TestCase):
|
||||||
|
cfg = self.cfg.clone()
|
||||||
|
yamlp = pathjoin(tmpboxx(), "test.yaml")
|
||||||
|
cfg.dump(yamlp)
|
||||||
|
- cfg_dict = yaml.load(open(yamlp))
|
||||||
|
+ cfg_dict = yaml.load(open(yamlp), yaml.Loader)
|
||||||
|
cfgd = CfgNode(cfg_dict)
|
||||||
|
self.assertTrue(str(cfg.dump()) == str(cfgd.dump()))
|
||||||
|
|
Loading…
Reference in a new issue