We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5eb48 commit 5689046Copy full SHA for 5689046
climada/util/test/test_files.py
@@ -90,8 +90,10 @@ def test_globbing(self):
90
tmp_files = os.listdir(file_name)
91
tmp_files = [file_name + f for f in tmp_files]
92
tmp_files = [f for f in tmp_files if not os.path.isdir(f)
93
- and not f.startswith('.')]
94
- self.assertEqual(tmp_files, out)
+ and not os.path.basename(os.path.normpath(f)).startswith('.')]
+
95
+ self.assertEqual(len(tmp_files), len(out))
96
+ self.assertEqual(sorted(tmp_files), sorted(out))
97
98
# Execute Tests
99
TESTS = unittest.TestLoader().loadTestsFromTestCase(TestToStrList)
0 commit comments