Skip to content

Commit

Permalink
Move stdlib imports to module scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Jul 19, 2017
1 parent d445a73 commit 799ce25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spanner/tests/system/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import operator
import os
import struct
import time
import unittest

from google.cloud.proto.spanner.v1.type_pb2 import ARRAY
Expand Down Expand Up @@ -605,15 +606,13 @@ def test_multiuse_snapshot_read_isolation_read_timestamp(self):
self._check_row_data(after, all_data_rows)

def test_multiuse_snapshot_read_isolation_exact_staleness(self):
import time
from datetime import timedelta
ROW_COUNT = 40

session, committed = self._set_up_table(ROW_COUNT)
all_data_rows = list(self._row_data(ROW_COUNT))

time.sleep(1)
delta = timedelta(microseconds=1000)
delta = datetime.timedelta(microseconds=1000)

exact = session.snapshot(exact_staleness=delta, multi_use=True)

Expand Down

0 comments on commit 799ce25

Please sign in to comment.