"tests/test_tokenization_layoutlm.py" did not exist on "7e98e211f0e86e414b22946bd89391e49d2ea900"
Commit c4e96156 authored by Wei-Sheng Chin's avatar Wei-Sheng Chin
Browse files

Fix a path so that test can run on Windows

parent 5fe0b378
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment