(self)
| 1669 | @profile |
| 1670 | @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed") |
| 1671 | def test_multithread_conversion(self): |
| 1672 | start_time = time.time() |
| 1673 | files = [ |
| 1674 | "./tests/test.pdf", |
| 1675 | ] * 50 |
| 1676 | with Pool(10) as p: |
| 1677 | res = p.map(convert_from_path, files) |
| 1678 | self.assertTrue(len(res) == 50) |
| 1679 | print("test_multithread_conversion: {} sec".format(time.time() - start_time)) |
| 1680 | |
| 1681 | @profile |
| 1682 | @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!") |
nothing calls this directly
no outgoing calls
no test coverage detected