Commits

Kazuhiko Shimada authored e1c5cd5ea59
CAS-13520: modified a comment

casatasks/tests/tasks/test_imbaseline.py

Modified
62 62 eraseable_folder_register.clear()
63 63 self.assertTrue(len(_tb.showcache()) == 0)
64 64 # make sure directory is clean as per verification test requirement
65 65 cwd = os.getcwd()
66 66 for filename in os.listdir(cwd):
67 67 file_path = os.path.join(cwd, filename)
68 68 try:
69 69 if os.path.isfile(file_path) or os.path.islink(file_path):
70 70 os.unlink(file_path)
71 71 elif os.path.isdir(file_path):
72 - # CASA 5 tests need this directory
73 72 if filename != 'xml':
74 73 shutil.rmtree(file_path)
75 74 except Exception as e:
76 75 print('Failed to delete %s. Reason: %s' % (file_path, e))
77 76
78 77 def _copy_test_files(self, basename, filename):
79 78 """Copy files for testing into current path."""
80 79 _base = ctsys_resolve(basename)
81 80 copy_from = os.path.join(_base, filename)
82 81 if not os.path.exists(copy_from) or copy_from == os.path.join(os.getcwd(), filename):

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut