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

Commit 17e17a9

Browse files
committed
Revert "Remove unused module"
This reverts commit 9754f4e. Removing it was a mistake.
1 parent 9754f4e commit 17e17a9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

ethereum/tests/utils.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: tabstop=4 shiftwidth=4 softtabstop=4
3+
4+
# pyethereum is free software: you can redistribute it and/or modify it
5+
# under the terms of the The MIT License
6+
7+
8+
"""Utilities used by more than one test."""
9+
10+
11+
import json
12+
import os
13+
import tempfile
14+
from ethereum.db import DB as DB
15+
from ethereum.config import Env
16+
__TESTDATADIR = "../tests"
17+
18+
tempdir = tempfile.mktemp()
19+
20+
21+
def load_test_data(fname):
22+
return json.loads(open(os.path.join(__TESTDATADIR, fname)).read())
23+
24+
25+
def new_db():
26+
return DB()
27+
28+
29+
def new_env():
30+
return Env(new_db())

0 commit comments

Comments
 (0)