Skip to content

Commit

Permalink
Fix new WorkqueueService Algorithm tests for Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderrichards committed Feb 11, 2020
1 parent 90e2134 commit 291652c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pdm/workqueue/test_WorkqueueService.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setUp(self):
src_filepath='/data/somefile1', type=JobType.LIST))
job = Job(user_id=2, src_siteid=14,
src_filepath='/data/somefile2', type=JobType.REMOVE)
for i in xrange(1, 6):
for i in range(1, 6):
job.elements.append(JobElement(id=i, job_id=2, src_siteid=12,
src_filepath='/data/somefile2.%d' % i,
type=JobType.REMOVE, size=10**i))
Expand All @@ -34,7 +34,7 @@ def setUp(self):
src_siteid=15, src_filepath='/data/somefile3',
dst_siteid=16, dst_filepath='/data/newfile')

for i in xrange(1, 6):
for i in range(1, 6):
j.elements.append(JobElement(id=i, job_id=3, src_siteid=12,
src_filepath='/data/somefile3.%d' % i,
dst_filepath='/data/newfile.%d' % i,
Expand Down

0 comments on commit 291652c

Please sign in to comment.