Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

I made the tests 100x faster!

  • Loading branch information...
commit c7e8fbb628fffcd87446eb9c156595740c639c9b 1 parent b97bd61
@robotadam robotadam authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 tests/test_types.py
View
6 tests/test_types.py
@@ -322,7 +322,7 @@ class ArrayTest(mmstats.BaseMmStats):
arr = mmstats.UIntArraySampledField(label='arr', array_size=10)
stats = ArrayTest(filename='mmstats-test-uint32-array')
- for i in range(1000):
+ for i in range(10):
stats.arr.add_value(i)
# Hey nice I didn't crash
@@ -337,11 +337,9 @@ class ArrayTest(mmstats.BaseMmStats):
label='arr', array_size=1024)
stats = ArrayTest(filename='mmstats-test-uint32-array')
- import time
for i in range(10):
- time.sleep(1)
print '.'
- for i in range(10000):
+ for i in range(10):
stats.arr.add_value(i)
# Hey nice I didn't crash
Please sign in to comment.
Something went wrong with that request. Please try again.