Skip to content

Commit

Permalink
Fix test-leakage by not copying config correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 29, 2019
1 parent 6b3d25b commit cabe291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion freqtrade/configuration/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import logging
import warnings
from argparse import Namespace
from copy import deepcopy
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional

Expand Down Expand Up @@ -56,7 +57,7 @@ def from_files(files: List[str]) -> Dict[str, Any]:
config: Dict[str, Any] = {}

if not files:
return constants.MINIMAL_CONFIG.copy()
return deepcopy(constants.MINIMAL_CONFIG)

# We expect here a list of config filenames
for path in files:
Expand Down

0 comments on commit cabe291

Please sign in to comment.