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

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ethereum/testutils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,14 +579,13 @@ def fixture_to_bytes(value):
579579

580580
def get_config_overrides(filename):
581581
override = {}
582-
parts = filename.split(os.sep)
583-
if 'Homestead' in parts:
582+
if os.path.join('BlockchainTests', 'Homestead') in filename:
584583
override['HOMESTEAD_FORK_BLKNUM'] = 0
585-
if 'TestNetwork' in parts:
584+
elif os.path.join('BlockchainTests', 'TestNetwork') in filename:
586585
override['HOMESTEAD_FORK_BLKNUM'] = 5
587586
override['DAO_FORK_BLKNUM'] = 8
588587
override['ANTI_DOS_FORK_BLKNUM'] = 10
589-
elif 'EIP150' in parts:
588+
elif os.path.join('BlockchainTests', 'EIP150') in filename:
590589
override['HOMESTEAD_FORK_BLKNUM'] = 0
591590
override['ANTI_DOS_FORK_BLKNUM'] = 0
592591
override['DAO_FORK_BLKNUM'] = 2 ** 99 # not applicable

0 commit comments

Comments
 (0)