Skip to content

Commit

Permalink
Reformat conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiersg committed Apr 26, 2021
1 parent b722b8c commit aaf0c48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

import os
import numpy as np
import random

import pytest


@pytest.fixture(autouse=True)
def seed_random():
init1 = random.SystemRandom().randrange(0, 2**32)
init2 = random.SystemRandom().randrange(0, 2**32)
init1 = random.SystemRandom().randrange(0, 2 ** 32)
init2 = random.SystemRandom().randrange(0, 2 ** 32)
print(f"Ranom seeds: random.seed({init1}); np.random.seed({init2})")
random.seed(init1)
np.random.seed(init2)

0 comments on commit aaf0c48

Please sign in to comment.