Filter tempfile backport warnings in data_types.py as well.
@@ -25,6 +25,7 @@ import json
import pprint
import shutil
from six.moves import queue
+import warnings
import backports.tempfile
import collections
@@ -40,6 +41,10 @@ import tempfile
from wandb import util
+# Get rid of cleanup warnings in Python 2.7.
+warnings.filterwarnings('ignore', 'Implicitly cleaning up', RuntimeWarning, 'backports.tempfile')
+
+
# Staging directory so we can encode raw data into files, then hash them before
# we put them into the Run directory to be uploaded.
MEDIA_TMP = backports.tempfile.TemporaryDirectory('wandb-media')
