Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 1b0d003

Browse files
NerdRomanZacharia
authored andcommitted
Code cleanup
1 parent b48514f commit 1b0d003

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ethereum/tests/test_difficulty.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,17 @@ def test_difficulty(filename, testname, testdata):
3838
assert calculated_dif == reference_dif
3939

4040

41-
#def pytest_generate_tests(metafunc):
42-
# testutils.generate_test_params('BasicTests', metafunc)
43-
4441
def not_a_difficulty_test(filename, testname, testdata):
42+
if 'difficultyOlimpic.json' in filename:
43+
return True
4544
if 'difficulty' in filename:
4645
return False
47-
if 'difficulty.json' in filename:
48-
return False
49-
if 'difficultyFrontier' in filename:
50-
return False
46+
5147
return True
5248

5349

5450
def pytest_generate_tests(metafunc):
55-
testutils.generate_test_params('DifficultyTests', metafunc, exclude_func=not_a_difficulty_test)
51+
testutils.generate_test_params('BasicTests', metafunc, exclude_func=not_a_difficulty_test)
5652

5753

5854
def main():

0 commit comments

Comments
 (0)