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

Tempfile cleanup from test_adb_monitor.py

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 4.1.10
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • DAG 2019-04-22
    • 8
    • 1

    Description

      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
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: