Skip to content

Video editing with Python

sometimes tempfile.tempdir is None, so use tempfile.gettempdir() function instead (#633)

Billy Earneya7f44df1c4de
diff --git a/tests/test_helper.py b/tests/test_helper.py
index 1dd6a71c..9a17b495 100644
--- a/tests/test_helper.py
+++ b/tests/test_helper.py
@@ -6,7 +6,7 @@ import tempfile
TRAVIS = os.getenv("TRAVIS_PYTHON_VERSION") is not None
PYTHON_VERSION = "%s.%s" % (sys.version_info.major, sys.version_info.minor)
-TMP_DIR = tempfile.tempdir
+TMP_DIR = tempfile.gettempdir() # because tempfile.tempdir is sometimes None
# Arbitrary font used in caption testing.
if sys.platform in ("win32", "cygwin"):