|
|
|
@ -3,6 +3,7 @@ from test.test_support import run_unittest, TESTFN |
|
|
|
import glob |
|
|
|
import os |
|
|
|
import shutil |
|
|
|
import sys |
|
|
|
|
|
|
|
|
|
|
|
class GlobTests(unittest.TestCase): |
|
|
|
@ -110,6 +111,14 @@ class GlobTests(unittest.TestCase): |
|
|
|
eq(self.glob('sym1'), [self.norm('sym1')]) |
|
|
|
eq(self.glob('sym2'), [self.norm('sym2')]) |
|
|
|
|
|
|
|
@unittest.skipUnless(sys.platform == "win32", "Win32 specific test") |
|
|
|
def test_glob_magic_in_drive(self): |
|
|
|
eq = self.assertSequencesEqual_noorder |
|
|
|
eq(glob.glob('*:'), []) |
|
|
|
eq(glob.glob(u'*:'), []) |
|
|
|
eq(glob.glob('?:'), []) |
|
|
|
eq(glob.glob(u'?:'), []) |
|
|
|
|
|
|
|
|
|
|
|
def test_main(): |
|
|
|
run_unittest(GlobTests) |
|
|
|
|