Browse Source

python 3.6 compat

Bastien Sevajol 6 years ago
parent
commit
04be5cfd3f
1 changed files with 5 additions and 5 deletions
  1. 5 5
      tests/test_simulation.py

+ 5 - 5
tests/test_simulation.py View File

315
         do_nothing_process_manager: ProcessManager,
315
         do_nothing_process_manager: ProcessManager,
316
     ):
316
     ):
317
         shared.reset()
317
         shared.reset()
318
-        called = 0
319
         global called
318
         global called
319
+        called = 0
320
 
320
 
321
         class MySubjectMechanism(SubjectMechanism):
321
         class MySubjectMechanism(SubjectMechanism):
322
             def run(self):
322
             def run(self):
359
         do_nothing_process_manager: ProcessManager,
359
         do_nothing_process_manager: ProcessManager,
360
     ):
360
     ):
361
         shared.reset()
361
         shared.reset()
362
-        called = 0
363
         global called
362
         global called
363
+        called = 0
364
 
364
 
365
         class MySimulationMechanism(SimulationMechanism):
365
         class MySimulationMechanism(SimulationMechanism):
366
             def run(self, process_number: int = None, process_count: int = None):
366
             def run(self, process_number: int = None, process_count: int = None):
401
         do_nothing_process_manager: ProcessManager,
401
         do_nothing_process_manager: ProcessManager,
402
     ):
402
     ):
403
         shared.reset()
403
         shared.reset()
404
-        called = 0
405
         global called
404
         global called
405
+        called = 0
406
 
406
 
407
         class MySubjectMechanism(SubjectMechanism):
407
         class MySubjectMechanism(SubjectMechanism):
408
             def run(self):
408
             def run(self):
433
         do_nothing_process_manager: ProcessManager,
433
         do_nothing_process_manager: ProcessManager,
434
     ):
434
     ):
435
         shared.reset()
435
         shared.reset()
436
-        called = 0
437
         global called
436
         global called
437
+        called = 0
438
 
438
 
439
         class MySimulationMechanism(SimulationMechanism):
439
         class MySimulationMechanism(SimulationMechanism):
440
             def run(self, process_number: int = None, process_count: int = None):
440
             def run(self, process_number: int = None, process_count: int = None):
463
         do_nothing_process_manager: ProcessManager,
463
         do_nothing_process_manager: ProcessManager,
464
     ):
464
     ):
465
         shared.reset()
465
         shared.reset()
466
-        called = 0
467
         global called
466
         global called
467
+        called = 0
468
 
468
 
469
         class MySubjectMechanism(SubjectMechanism):
469
         class MySubjectMechanism(SubjectMechanism):
470
             def run(self):
470
             def run(self):