Skip to content

Test without examples #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions neo4j/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from collections import deque
from random import random
from threading import RLock
from time import time, sleep
from time import clock, sleep
from warnings import warn

from neo4j.bolt import ProtocolError, ServiceUnavailable
Expand Down Expand Up @@ -422,7 +422,7 @@ def _run_transaction(self, access_mode, unit_of_work, *args, **kwargs):
RETRY_DELAY_MULTIPLIER,
RETRY_DELAY_JITTER_FACTOR)
last_error = None
t0 = t1 = time()
t0 = t1 = clock()
while t1 - t0 <= self._max_retry_time:
try:
self._create_transaction()
Expand All @@ -438,7 +438,7 @@ def _run_transaction(self, access_mode, unit_of_work, *args, **kwargs):
else:
raise error
sleep(next(retry_delay))
t1 = time()
t1 = clock()
raise last_error

def read_transaction(self, unit_of_work, *args, **kwargs):
Expand Down
7 changes: 2 additions & 5 deletions neo4j/v1/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@ def __run__(self, statement, parameters):
result.statement = statement
result.parameters = parameters

try:
self._connection.append(RUN, (statement, parameters), response=run_response)
self._connection.append(PULL_ALL, response=pull_all_response)
except AttributeError:
pass
self._connection.append(RUN, (statement, parameters), response=run_response)
self._connection.append(PULL_ALL, response=pull_all_response)

return result

Expand Down
25 changes: 0 additions & 25 deletions test/examples/__main__.py

This file was deleted.

34 changes: 0 additions & 34 deletions test/examples/autocommit_transaction_example.py

This file was deleted.

28 changes: 0 additions & 28 deletions test/examples/base_application.py

This file was deleted.

36 changes: 0 additions & 36 deletions test/examples/basic_auth_example.py

This file was deleted.

33 changes: 0 additions & 33 deletions test/examples/config_connection_timeout_example.py

This file was deleted.

33 changes: 0 additions & 33 deletions test/examples/config_max_retry_time_example.py

This file was deleted.

33 changes: 0 additions & 33 deletions test/examples/config_trust_example.py

This file was deleted.

32 changes: 0 additions & 32 deletions test/examples/config_unencrypted_example.py

This file was deleted.

32 changes: 0 additions & 32 deletions test/examples/custom_auth_example.py

This file was deleted.

42 changes: 0 additions & 42 deletions test/examples/cypher_error_example.py

This file was deleted.

Loading