We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7066c commit 83e2ee7Copy full SHA for 83e2ee7
tests/commands/test_commit_command.py
@@ -229,7 +229,10 @@ def test_WrapStdx(mocker):
229
wrap_stout = commands.commit.WrapStdx(sys.stdout)
230
wrap_stout.write("data")
231
232
- writer_mock.assert_called_once_with("/dev/tty", 'w')
+ if sys.platform == 'linux':
233
+ writer_mock.assert_called_once_with("/dev/tty", 'w')
234
+ else:
235
+ pass
236
writer_mock().write.assert_called_once_with("data")
237
238
@@ -242,5 +245,8 @@ def test_WrapStdx(mocker):
242
245
243
246
wrap_sterr.write("data")
244
247
248
249
250
251
252
0 commit comments