Commits

Konstantine Rybnikov  committed fbf7df4

remove wrong file fix

  • Participants
  • Parent commits 50fc2ae

Comments (0)

Files changed (1)

File tests/test_main.py

                          self.f.readlines())
     
     def test_save(self):
-        os.remove('tests/testfiles/test_yml_config_parser/1.css')
-        os.remove('tests/testfiles/test_yml_config_parser/2.css')
+        merged = 'tests/testfiles/test_yml_config_parser/merged_most_popular.css'
+        if os.path.exists(merged):
+            os.remove(merged)
         # os.remove('tests/testfiles/test_yml_config_parser/3.css')
         self.merger.save('merged_most_popular.css')
-        self.assertEqual(filecmp.cmp('tests/testfiles/test_yml_config_parser/merged_most_popular.css',
+        self.assertEqual(filecmp.cmp(merged,
                                      'tests/testfiles/test_yml_config_parser/1_2_merged.css',
                                      shallow=True),
                          True)