tests: sleep() before creating a file

This commit is contained in:
Ruslan Kuprieiev
2018-08-30 17:27:05 +03:00
committed by GitHub
parent 2b0391629b
commit 392cd006e3
+3
View File
@@ -259,6 +259,9 @@ class TestReproChangedDirData(TestDvc):
def test(self):
dir_name = 'dir'
dir_code = 'dir_code.py'
sleep()
with open(dir_code, 'w+') as fd:
fd.write("import os; import sys; import shutil; shutil.copytree(sys.argv[1], sys.argv[2])")