UPD: excluded unused function apps.base.tests.utils.mkdtemp from pylint.
All checks were successful
buildbot/django-test-test-python3 Build done.
buildbot/django-test-test-python2 Build done.

This commit is contained in:
2019-10-24 16:37:53 +02:00
parent e9a43740ee
commit 42ef136bbe

View File

@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# pylint: skip-file
from __future__ import unicode_literals
import os
from tempfile import mkdtemp as _mkdtmp
@@ -8,6 +9,5 @@ def mkdtemp(prefix):
dirname = os.path.dirname
pkg_base_dir = dirname(dirname(dirname(__file__)))
tmp_dir = os.path.join(pkg_base_dir, 'tmp')
# os.makedirs(tmp_dir, exist_ok=True)
os.makedirs(tmp_dir)
os.makedirs(tmp_dir, exist_ok=True)
return _mkdtmp(prefix=prefix, dir=tmp_dir)