Merge pull request #806 from wschin/fix-a-path

Fix a path so that a test can run on Windows
This commit is contained in:
Thomas Wolf
2019-08-21 01:14:40 +02:00
committed by GitHub

View File

@@ -21,6 +21,7 @@ import os
import shutil
import json
import random
import uuid
import unittest
import logging
@@ -527,7 +528,7 @@ class ConfigTester(object):
def create_and_test_config_to_json_file(self):
config_first = self.config_class(**self.inputs_dict)
json_file_path = "/tmp/config.json"
json_file_path = os.path.join(os.getcwd(), "config_" + str(uuid.uuid4()) + ".json")
config_first.to_json_file(json_file_path)
config_second = self.config_class.from_json_file(json_file_path)
os.remove(json_file_path)