(self)
| 1090 | |
| 1091 | @testing.requires.timing_intensive |
| 1092 | def test_timeout(self): |
| 1093 | p = self._queuepool_fixture(pool_size=3, max_overflow=0, timeout=2) |
| 1094 | c1 = p.connect() # noqa |
| 1095 | c2 = p.connect() # noqa |
| 1096 | c3 = p.connect() # noqa |
| 1097 | now = time.time() |
| 1098 | |
| 1099 | assert_raises(tsa.exc.TimeoutError, p.connect) |
| 1100 | assert int(time.time() - now) == 2 |
| 1101 | |
| 1102 | def test_timeout_subsecond_precision(self): |
| 1103 | """test that a subsecond precision is passed to queue.get() |
nothing calls this directly
no test coverage detected