Skip to content

Commit

Permalink
fix os.startfile patch under linux
Browse files Browse the repository at this point in the history
  • Loading branch information
xflr6 committed May 9, 2017
1 parent f3a6ce0 commit be24e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_backend.py
Expand Up @@ -59,7 +59,7 @@ def test_view_linux(Popen):


@mock.patch('graphviz.backend.PLATFORM', 'windows')
@mock.patch('os.startfile')
@mock.patch('os.startfile', create=True)
def test_view_windows(startfile):
view('spam')
startfile.assert_called_once_with('spam')

0 comments on commit be24e7b

Please sign in to comment.