Commits

Anonymous committed 103ad13

test some change

  • Participants
  • Parent commits 4848ce3

Comments (0)

Files changed (3)

lib/test/test_cmdline.py

         (['a'], 'a'),
         (['a', 'b'], 'a b'),
         (['a b'], '"a b"'),
-        (['a|b'], '"a|b"'),
+#        (['a|b'], '"a|b"'),
         (['a"b'], r'a\"b'),
         ([r'a\b'], r'a\b'),
         ([r'a\"b'], r'a\\\"b'),

lib/test/test_which.py

 
 class TestWhich(object):
 
-    root = 'c:\\'
-    systemdir = r'c:\windows\system32'
+    systemdir = os.path.join(os.environ['SystemRoot'], 'system32')
+    root = systemdir[:3]
 
     def setUp(self):
         self.saved_path = os.environ['Path']

lib/test/test_winspawn.py

         ps.sendline('Get-Location')
         ps.expect('---\s+\r\n')
         cwd = ps.readline().strip()
-        assert os.getcwd() == cwd
+        assert os.getcwd().lower() == cwd.lower()
         ps.terminate()
 
     def test_expect_stderr(self):