diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-22 08:01:38 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-22 08:01:38 (GMT) |
| commit | 949c416dc61faa6dad398bc5a34781ff152ddc23 (patch) | |
| tree | 0f46c9bb2e635652ec2ea572ac3e4ed9d24dd0cc /Lib/test/test_compileall.py | |
| parent | 71b49dde3a1162248e43ff99f4e83aae07747341 (diff) | |
| parent | d86ef05a02e820adfd1e3a11cd56d3444d9aa2c9 (diff) | |
| download | cpython-949c416dc61faa6dad398bc5a34781ff152ddc23.zip cpython-949c416dc61faa6dad398bc5a34781ff152ddc23.tar.gz cpython-949c416dc61faa6dad398bc5a34781ff152ddc23.tar.bz2 | |
Merge heads
Diffstat (limited to 'Lib/test/test_compileall.py')
| -rw-r--r-- | Lib/test/test_compileall.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py index 07756f6..2053304 100644 --- a/Lib/test/test_compileall.py +++ b/Lib/test/test_compileall.py @@ -136,10 +136,10 @@ class CompileallTests(unittest.TestCase): self.assertTrue(compile_file_mock.called) @mock.patch('compileall.ProcessPoolExecutor', new=None) - def test_compile_missing_multiprocessing(self): - with self.assertRaisesRegex(NotImplementedError, - "multiprocessing support not available"): - compileall.compile_dir(self.directory, quiet=True, workers=5) + @mock.patch('compileall.compile_file') + def test_compile_missing_multiprocessing(self, compile_file_mock): + compileall.compile_dir(self.directory, quiet=True, workers=5) + self.assertTrue(compile_file_mock.called) class EncodingTest(unittest.TestCase): """Issue 6716: compileall should escape source code when printing errors |
