Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Update
python-mailman
fix-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-tests.patch of Package python-mailman
--- src/mailman/commands/tests/test_cli_inject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/src/mailman/commands/tests/test_cli_inject.py +++ b/src/mailman/commands/tests/test_cli_inject.py @@ -63,7 +63,7 @@ class TestInject(unittest.TestCase): self.assertEqual( result.output, 'Usage: inject [OPTIONS] LISTSPEC\n' - 'Try \'inject --help\' for help.\n\n' + 'Try "inject --help" for help.\n\n' 'Error: No such list: bee.example.com\n') def test_inject_no_such_queue(self): @@ -73,7 +73,7 @@ class TestInject(unittest.TestCase): self.assertEqual( result.output, 'Usage: inject [OPTIONS] LISTSPEC\n' - 'Try \'inject --help\' for help.\n\n' + 'Try "inject --help" for help.\n\n' 'Error: No such queue: bogus\n') def test_inject_no_filename_option(self): --- a/src/mailman/commands/tests/test_cli_conf.py +++ b/src/mailman/commands/tests/test_cli_conf.py @@ -39,7 +39,7 @@ class TestConf(unittest.TestCase): self.assertEqual( result.output, 'Usage: conf [OPTIONS]\n' - 'Try \'conf --help\' for help.\n\n' + 'Try "conf --help" for help.\n\n' 'Error: No such section: thissectiondoesnotexist\n') def test_cannot_access_nonexistent_section_and_key(self): @@ -49,7 +49,7 @@ class TestConf(unittest.TestCase): self.assertEqual( result.output, 'Usage: conf [OPTIONS]\n' - 'Try \'conf --help\' for help.\n\n' + 'Try "conf --help" for help.\n\n' 'Error: No such section: thissectiondoesnotexist\n') def test_cannot_access_nonexistent_key(self): @@ -59,7 +59,7 @@ class TestConf(unittest.TestCase): self.assertEqual( result.output, 'Usage: conf [OPTIONS]\n' - 'Try \'conf --help\' for help.\n\n' + 'Try "conf --help" for help.\n\n' 'Error: Section mailman: No such key: thiskeydoesnotexist\n') def test_output_to_explicit_stdout(self): --- a/src/mailman/commands/tests/test_cli_control.py +++ b/src/mailman/commands/tests/test_cli_control.py @@ -254,7 +254,7 @@ class TestControl(unittest.TestCase): self.assertEqual( result.output, 'Usage: start [OPTIONS]\n' - 'Try \'start --help\' for help.\n\n' + 'Try "start --help" for help.\n\n' 'Error: A previous run of GNU Mailman did not exit cleanly ' '(stale_lock). Try using --force\n') @@ -304,7 +304,7 @@ class TestControlSimple(unittest.TestCas self.assertEqual( results.output, 'Usage: start [OPTIONS]\n' - 'Try \'start --help\' for help.\n\n' + 'Try "start --help" for help.\n\n' 'Error: GNU Mailman is already running\n') def test_reopen(self): --- a/src/mailman/commands/tests/test_cli_create.py +++ b/src/mailman/commands/tests/test_cli_create.py @@ -41,7 +41,7 @@ class TestCreate(unittest.TestCase): self.assertEqual( result.output, 'Usage: create [OPTIONS] LISTNAME\n' - 'Try \'create --help\' for help.\n\n' + 'Try "create --help" for help.\n\n' 'Error: List already exists: ant@example.com\n') def test_invalid_posting_address(self): @@ -51,7 +51,7 @@ class TestCreate(unittest.TestCase): self.assertEqual( result.output, 'Usage: create [OPTIONS] LISTNAME\n' - 'Try \'create --help\' for help.\n\n' + 'Try "create --help" for help.\n\n' 'Error: Illegal list name: foo\n') def test_invalid_owner_addresses(self): @@ -62,7 +62,7 @@ class TestCreate(unittest.TestCase): self.assertEqual( result.output, 'Usage: create [OPTIONS] LISTNAME\n' - 'Try \'create --help\' for help.\n\n' + 'Try "create --help" for help.\n\n' 'Error: Illegal owner addresses: invalid\n') def test_create_without_domain_option(self): @@ -92,7 +92,7 @@ class TestCreate(unittest.TestCase): self.assertEqual( result.output, 'Usage: create [OPTIONS] LISTNAME\n' - 'Try \'create --help\' for help.\n\n' + 'Try "create --help" for help.\n\n' 'Error: Undefined domain: example.org\n') def test_create_with_nodomain(self): @@ -102,7 +102,7 @@ class TestCreate(unittest.TestCase): self.assertEqual( result.output, 'Usage: create [OPTIONS] LISTNAME\n' - 'Try \'create --help\' for help.\n\n' + 'Try "create --help" for help.\n\n' 'Error: Undefined domain: example.org\n') --- a/src/mailman/commands/tests/test_cli_import.py +++ b/src/mailman/commands/tests/test_cli_import.py @@ -58,8 +58,8 @@ class TestImport(unittest.TestCase): self.assertEqual( result.output, 'Usage: import21 [OPTIONS] LISTSPEC PICKLE_FILE\n' - 'Try \'import21 --help\' for help.\n\n' - 'Error: Missing argument \'LISTSPEC\'.\n') + 'Try "import21 --help" for help.\n\n' + 'Error: Missing argument "LISTSPEC".\n') def test_pickle_with_nondict(self): with NamedTemporaryFile() as pckfile: --- a/src/mailman/commands/tests/test_cli_members.py +++ b/src/mailman/commands/tests/test_cli_members.py @@ -41,7 +41,7 @@ class TestCLIMembers(unittest.TestCase): self.assertEqual( result.output, 'Usage: members [OPTIONS] LISTSPEC\n' - 'Try \'members --help\' for help.\n\n' + 'Try "members --help" for help.\n\n' 'Error: No such list: bee.example.com\n') def test_role_administrator(self): --- a/src/mailman/commands/tests/test_cli_shell.py +++ b/src/mailman/commands/tests/test_cli_shell.py @@ -142,7 +142,7 @@ Exit with ctrl+D does an implicit commit self.assertEqual( results.output, 'Usage: shell [OPTIONS] [RUN_ARGS]...\n' - 'Try \'shell --help\' for help.\n\n' + 'Try "shell --help" for help.\n\n' 'Error: Regular expression requires --run\n') def test_listspec_without_run(self): @@ -165,7 +165,7 @@ Exit with ctrl+D does an implicit commit self.assertEqual( results.output, 'Usage: shell [OPTIONS] [RUN_ARGS]...\n' - 'Try \'shell --help\' for help.\n\n' + 'Try "shell --help" for help.\n\n' 'Error: No such list: ant.example.com\n') def test_run_without_listspec(self): @@ -183,5 +183,5 @@ Exit with ctrl+D does an implicit commit self.assertEqual( results.output, 'Usage: shell [OPTIONS] [RUN_ARGS]...\n' - 'Try \'shell --help\' for help.\n\n' + 'Try "shell --help" for help.\n\n' 'Error: No such list: bee.example.com\n') --- a/src/mailman/database/alembic/versions/33e1f5f6fa8_.py +++ b/src/mailman/database/alembic/versions/33e1f5f6fa8_.py @@ -64,7 +64,7 @@ def downgrade(): # yet. op.execute( ('ALTER TABLE "{table}" ALTER COLUMN "{column}" ' - 'TYPE BYTEA USING decode("{column}", \'UTF8\')').format( + 'TYPE BYTEA USING decode("{column}", "UTF8")').format( table=table, column=column)) else: op.alter_column(table, column, type_=sa.LargeBinary)
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