projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
11308: Fix useless assertion.
[arvados.git]
/
sdk
/
python
/
tests
/
performance
/
test_a_sample.py
diff --git
a/sdk/python/tests/performance/test_a_sample.py
b/sdk/python/tests/performance/test_a_sample.py
index cc30ba605112cf9d50eb7f00e6090e1744abc2b1..0c5fe3adc8819dfb5670318464679f27ae95d660 100644
(file)
--- a/
sdk/python/tests/performance/test_a_sample.py
+++ b/
sdk/python/tests/performance/test_a_sample.py
@@
-1,10
+1,18
@@
+from __future__ import print_function
+from __future__ import absolute_import
+from builtins import range
import unittest
import unittest
-from
performance_profiler import PerformanceProfiler
+from
.performance_profiler import profiled
-class PerformanceTestSample(
PerformanceProfiler
):
- def f
unc
(self):
- print 'Hello'
+class PerformanceTestSample(
unittest.TestCase
):
+ def f
oo
(self):
+ bar = 64
- def test_performance(self):
- self.run_profiler('self.func', 'test_sample')
+ @profiled
+ def test_profiled_decorator(self):
+ j = 0
+ for i in range(0,2**20):
+ j += i
+ self.foo()
+ print('Hello')