1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix crash in some tests

This commit is contained in:
Julien Duponchelle 2017-04-13 14:24:07 +02:00
parent b755840a27
commit 57ba7ab801
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -216,15 +216,15 @@ def test_get_default_project_directory(monkeypatch):
def test_clean_project_directory(tmpdir): def test_clean_project_directory(tmpdir):
# A non anonymous project with uuid. # A non anonymous project with uuid.
project1 = tmpdir / uuid4() project1 = tmpdir / str(uuid4())
project1.mkdir() project1.mkdir()
# A non anonymous project. # A non anonymous project.
oldproject = tmpdir / uuid4() oldproject = tmpdir / str(uuid4())
oldproject.mkdir() oldproject.mkdir()
# an anonymous project # an anonymous project
project2 = tmpdir / uuid4() project2 = tmpdir / str(uuid4())
project2.mkdir() project2.mkdir()
tmp = (project2 / ".gns3_temporary") tmp = (project2 / ".gns3_temporary")
with open(str(tmp), 'w+') as f: with open(str(tmp), 'w+') as f: