Commit f7f58159 authored by Jim Fulton's avatar Jim Fulton

Added a delay to deal with low time resolution on windows, which

addresses some of the windows errors. (I think the remaining failures
here and in dbopen.txt have to do with the way time is used in
management of available connections.)
parent 899366bd
...@@ -41,7 +41,15 @@ We'll begin our example with a fairly standard set up. We ...@@ -41,7 +41,15 @@ We'll begin our example with a fairly standard set up. We
>>> import transaction >>> import transaction
>>> transaction.commit() >>> transaction.commit()
We wait for some ttime to pass, and then make some other changes.
>>> import time
>>> t = time.time()
>>> while time.time <= t:
... time.sleep(.001)
>>> import datetime >>> import datetime
>>> now = datetime.datetime.utcnow() >>> now = datetime.datetime.utcnow()
...@@ -403,4 +411,4 @@ memory usage would also be brief and unlikely to overlap. ...@@ -403,4 +411,4 @@ memory usage would also be brief and unlikely to overlap.
... transaction_manager=transaction1, at=now, before=historical_serial) ... transaction_manager=transaction1, at=now, before=historical_serial)
Traceback (most recent call last): Traceback (most recent call last):
... ...
ValueError: can only pass zero or one of `at` and `before` ValueError: can only pass zero or one of `at` and `before`
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment