X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Futil%2Fparallel.py;h=e5785c6f18d4359644f19cd79e4f8d66f3c31d57;hb=58a2b493f8df1072a1faa653c8abb6a3f9ba21fa;hp=7f8f5a07a1a2d1f0fa7af2774f83d723b4033a72;hpb=a55b5cf0818ced6ab8dc3e88fad7f6616675e826;p=nepi.git diff --git a/test/util/parallel.py b/test/util/parallel.py index 7f8f5a07..e5785c6f 100755 --- a/test/util/parallel.py +++ b/test/util/parallel.py @@ -4,9 +4,8 @@ # Copyright (C) 2013 INRIA # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation; # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -34,7 +33,7 @@ class ParallelRunTestCase(unittest.TestCase): def inc(count): count[0] += 1 - for x in xrange(10): + for x in range(10): runner.put(inc, count) runner.destroy() @@ -52,7 +51,7 @@ class ParallelRunTestCase(unittest.TestCase): runner = ParallelRun(maxthreads = 4) runner.start() - for x in xrange(100): + for x in range(100): runner.put(sleep) runner.empty() @@ -74,7 +73,7 @@ class ParallelRunTestCase(unittest.TestCase): runner = ParallelRun(maxthreads = 4) runner.start() - for x in xrange(4): + for x in range(4): runner.put(inc, count) runner.put(error)