Browse Source

Update test_callbacks.py

tags/v0.4.10
Yige Xu 5 years ago
parent
commit
38d5b36be1
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      test/core/test_callbacks.py

+ 3
- 1
test/core/test_callbacks.py View File

@@ -87,7 +87,9 @@ class TestCallback(unittest.TestCase):
trainer.train() trainer.train()
import os import os
import shutil import shutil
shutil.rmtree(os.path.join("./", 'tensorboard_logs_{}'.format(trainer.start_time)))
path = os.path.join("./", 'tensorboard_logs_{}'.format(trainer.start_time))
if os.path.exists(path):
shutil.rmtree(path)
def test_readonly_property(self): def test_readonly_property(self):
from fastNLP.core.callback import Callback from fastNLP.core.callback import Callback


Loading…
Cancel
Save