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 80fb4d2 commit 326bea9Copy full SHA for 326bea9
tests/test_app.py
@@ -493,10 +493,11 @@ def editor(qtbot):
493
494
return qtbot, win
495
496
-def test_editor(monkeypatch,editor):
+def conv_line_ends(text):
497
+
498
+ return '\n'.join(text.splitlines())
499
- def conv_line_ends(text):
- return '\n'.join(text.splitlines())
500
+def test_editor(monkeypatch,editor):
501
502
qtbot, editor = editor
503
@@ -1050,7 +1051,7 @@ def ok(*args, **kwargs):
1050
1051
1052
editor.new()
1053
assert(editor.modified == True)
- assert(editor.get_text_with_eol() == code)
1054
+ assert(conv_line_ends(editor.get_text_with_eol()) == code)
1055
1056
monkeypatch.setattr(QMessageBox, 'question',
1057
staticmethod(ok))
0 commit comments