Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP3:Update
ninja-ide
python3-fixes.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-fixes.patch of Package ninja-ide
Index: ninja-ide-2.4/ninja_tests/core/examples/file_for_tests.py =================================================================== --- ninja-ide-2.4.orig/ninja_tests/core/examples/file_for_tests.py +++ ninja-ide-2.4/ninja_tests/core/examples/file_for_tests.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -print 'testing' -print 'ñandú testing' +print('testing') +print('ñandú testing') Index: ninja-ide-2.4/ninja_tests/core/test_file_manager.py =================================================================== --- ninja-ide-2.4.orig/ninja_tests/core/test_file_manager.py +++ ninja-ide-2.4/ninja_tests/core/test_file_manager.py @@ -36,8 +36,8 @@ class FileManagerTestCase(unittest.TestC def test_read_file_content(self): filename = os.path.join(self.examples_dir, 'file_for_tests.py') content = file_manager.read_file_content(filename) - expected = ("# -*- coding: utf-8 -*-\n\nprint 'testing'\n" - "print 'ñandú testing'\n").encode('utf-8') + expected = ("# -*- coding: utf-8 -*-\n\nprint('testing')\n" + "print('ñandú testing')\n").encode('utf-8') self.assertEqual(content, expected) Index: ninja-ide-2.4/ninja_tests/gui/misc/test_console_widget.py =================================================================== --- ninja-ide-2.4.orig/ninja_tests/gui/misc/test_console_widget.py +++ ninja-ide-2.4/ninja_tests/gui/misc/test_console_widget.py @@ -157,7 +157,7 @@ class ConsoleWidgetTestCase(BaseTest): def test_copy_console_content(self): self.console_widget._write_command() self.console_widget._write_command() - lines = ("print 'ninja'", "q = 3") + lines = ("print('ninja')", "q = 3") for line in lines: self.console_widget.textCursor().insertText(line) self.console_widget._write_command() @@ -307,7 +307,7 @@ class ConsoleWidgetTestCase(BaseTest): self.assertEqual(text, text_after) def test_navigate_history(self): - lines = ("print 'ninja'", "print 'ide'") + lines = ("print('ninja')", "print('ide')") for line in lines: self.console_widget.textCursor().insertText(line) self.console_widget._write_command() @@ -328,4 +328,4 @@ class ConsoleWidgetTestCase(BaseTest): self.console_widget._down_pressed(None) line = self.console_widget.document().lastBlock().text() self.assertEqual(line, self.console_widget.prompt + current) - self.assertEqual(self.console_widget.history_index, 2) \ No newline at end of file + self.assertEqual(self.console_widget.history_index, 2)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor