evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / nb / nbmerge / pytest-compatibility.patch
blob81ea4c4218f83e0a6fa47303437907075d85c016
1 diff --git a/tests/test_merge.py b/tests/test_merge.py
2 index 06ee559..9d7b1af 100644
3 --- a/tests/test_merge.py
4 +++ b/tests/test_merge.py
5 @@ -1,3 +1,4 @@
6 +import io
7 import os
8 import sys
9 import unittest
10 @@ -21,8 +22,7 @@ def file_names_from(file_paths):
12 class TestMerge(unittest.TestCase):
13 def setUp(self):
14 - if not hasattr(sys.stdout, "getvalue"):
15 - self.fail("need to run in buffered mode")
16 + sys.stdout = io.StringIO()
18 def _validate_merged_three(self, merged):
19 self.assertEqual(len(merged.cells), 6)