Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40415

Tempfile cleanup from test_adb_monitor.py

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.1.10
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • DAG 2019-04-22
    • 8
    • 1

      Tempfiles are not cleaned up in test_adb_monitor.py

      The code which creates a named temp file, should also specify a temp_dir:

                  arg_test_file = tempfile.NamedTemporaryFile(delete=False).name
      

      Should be:

                  arg_test_file = tempfile.NamedTemporaryFile(dir=self.temp_dir, delete=False).name
      

            Assignee:
            jonathan.abrahams Jonathan Abrahams
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: