Skip to content

Commit d6190d4

Browse files
committed
fix test for python 3.5
1 parent 6150642 commit d6190d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/testsuite.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,14 +884,15 @@ def test_xmlrunner_output(self, exiter, testrunner):
884884
def test_xmlrunner_output_file(self, exiter, testrunner, opener):
885885
xmlrunner.runner.XMLTestProgram()
886886
opener.assert_called_once_with('test.xml', 'wb')
887-
opener().close.assert_called()
887+
open_file = opener()
888+
open_file.close.assert_called_with()
888889

889890
kwargs = dict(
890891
buffer=mock.ANY,
891892
failfast=mock.ANY,
892893
verbosity=mock.ANY,
893894
warnings=mock.ANY,
894-
output=opener('test.xml', 'wb'),
895+
output=open_file,
895896
)
896897

897898
if sys.version_info[:2] > (3, 4):

0 commit comments

Comments
 (0)