Coding style.

Using asyncio coroutines for workers instead of threads.
This commit is contained in:
Andrew Hamilton 2016-03-09 10:47:09 +00:00
parent b2e087a9db
commit 4fa5b524d4
8 changed files with 103 additions and 101 deletions

View file

@ -35,7 +35,7 @@ class SandboxFilesystemTestCase(unittest.TestCase):
self.assertTrue(os.path.exists(home_directory))
def test_run_a_command_in_the_sandbox(self):
stdout, stderr, returncode = self.sandbox.run_command(["pwd"])
stdout = subprocess.check_output(self.sandbox.command(["pwd"]))
self.assertEqual(stdout.strip().decode("utf-8"), os.environ["PWD"])