tests.py 266 B

12345678910111213
  1. from threading import Thread
  2. from django.test import TestCase
  3. # Create your tests here.
  4. if __name__ == '__main__':
  5. def forr(n, s):
  6. for i in range(n):
  7. print(s)
  8. for i in range(30):
  9. Thread(
  10. forr(10, i)
  11. ).start()