Skip to content

Commit 45e4604

Browse files
Polishing.
1 parent 90776ac commit 45e4604

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Lib/test/test_sys.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,18 +2072,14 @@ def _run_remote_exec_test(self, script_code, python_args=None, env=None, prologu
20722072

20732073
def test_remote_exec(self):
20742074
"""Test basic remote exec functionality"""
2075-
script = '''
2076-
print("Remote script executed successfully!")
2077-
'''
2075+
script = 'print("Remote script executed successfully!")'
20782076
returncode, stdout, stderr = self._run_remote_exec_test(script)
20792077
# self.assertEqual(returncode, 0)
20802078
self.assertIn(b"Remote script executed successfully!", stdout)
20812079
self.assertEqual(stderr, b"")
20822080

20832081
def test_remote_exec_bytes(self):
2084-
script = '''
2085-
print("Remote script executed successfully!")
2086-
'''
2082+
script = 'print("Remote script executed successfully!")'
20872083
script_path = os.fsencode(os_helper.TESTFN) + b'_bytes_remote.py'
20882084
returncode, stdout, stderr = self._run_remote_exec_test(script,
20892085
script_path=script_path)

0 commit comments

Comments
 (0)