From 335dccabfda7de779c8bd611e989ee48f24d456b Mon Sep 17 00:00:00 2001 From: Henddher Pedroza Date: Sun, 13 Oct 2019 19:45:15 -0400 Subject: [PATCH] Remove lint warnings from test_batchprocessors. --- evennia/utils/tests/test_batchprocessors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evennia/utils/tests/test_batchprocessors.py b/evennia/utils/tests/test_batchprocessors.py index 89d9d72f17..87593124c0 100644 --- a/evennia/utils/tests/test_batchprocessors.py +++ b/evennia/utils/tests/test_batchprocessors.py @@ -81,7 +81,7 @@ class TestBatchCommandProcessor(TestCase): IOError ] with self.assertRaises(IOError, msg='#INSERT x failed.'): - commands = batchprocessors.BATCHCMD.parse_file('foopath') + batchprocessors.BATCHCMD.parse_file('foopath') self.assertEqual(mocked_read.mock_calls, [ mock.call('foopath', file_ending='.ev'), mock.call('x', file_ending='.ev')]) @@ -115,7 +115,7 @@ class TestBatchCodeProcessor(TestCase): self.assertEqual([ '# batchcode code:\n\n', '# batchcode code:\n\nprint("Hello")\n', - '# batchcode code:\n\na = 1\nb = [1, \n2, 3]\n'], + '# batchcode code:\n\na = 1\nb = [1,\n2, 3]\n'], commands) @mock.patch.object(batchprocessors, 'read_batchfile') @@ -171,7 +171,7 @@ class TestBatchCodeProcessor(TestCase): IOError ] with self.assertRaises(IOError, msg='#INSERT x failed.'): - commands = batchprocessors.BATCHCODE.parse_file('foopath') + batchprocessors.BATCHCODE.parse_file('foopath') self.assertEqual(mocked_read.mock_calls, [ mock.call('foopath', file_ending='.py'), mock.call('x', file_ending='.py')])