Skip to content

Commit

Permalink
fix pytest for python3 (sonic-net#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored Jun 28, 2020
1 parent 1772581 commit c76d3b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_redis_ut.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def table_set(t, state):
def generator_SelectMemoryLeak():
app_db = swsscommon.DBConnector("APPL_DB", 0, True)
t = swsscommon.Table(app_db, "TABLE")
for i in xrange(N/2):
for i in range(int(N/2)):
table_set(t, "up")
table_set(t, "down")

Expand All @@ -113,7 +113,7 @@ def generator_SelectMemoryLeak():
thr.daemon = True
thr.start()
time.sleep(5)
for _ in xrange(N):
for _ in range(N):
state, c = sel.select(1000)
diff = tracker.diff()
cases = []
Expand Down

0 comments on commit c76d3b3

Please sign in to comment.