Here is one possible situation:
Traceback (most recent call last):
File "/opt/python-2.7/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/opt/python-2.7/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/denisenk/django-sqlserver/env/src/django/tests/select_for_update/tests.py", line 245, in raw
connection.ops.for_update_sql(nowait=True)
File "/home/denisenk/django-sqlserver/env/src/django/django/db/models/query.py", line 1427, in __iter__
for values in query:
File "/home/denisenk/django-sqlserver/env/lib/python2.7/site-packages/six.py", line 473, in next
return type(self).__next__(self)
File "/home/denisenk/django-sqlserver/env/src/pytds/pytds/__init__.py", line 703, in __next__
row = self.fetchone()
File "/home/denisenk/django-sqlserver/env/src/pytds/pytds/__init__.py", line 676, in fetchone
row = self._session.fetchone()
File "/home/denisenk/django-sqlserver/env/src/pytds/pytds/tds.py", line 3429, in fetchone
if not self.next_row():
File "/home/denisenk/django-sqlserver/env/src/pytds/pytds/tds.py", line 3443, in next_row
self.process_end(marker)
File "/home/denisenk/django-sqlserver/env/src/pytds/pytds/tds.py", line 2654, in process_end
self.raise_db_exception()
File "/home/denisenk/django-sqlserver/env/src/pytds/pytds/tds.py", line 2443, in raise_db_exception
raise ex
OperationalError: Lock request time out period exceeded.
PR