devtools/qunit.py
branchstable
changeset 6535 972bd504daf6
parent 6514 f328ec853e18
child 7051 34d8b36480a9
--- a/devtools/qunit.py	Mon Oct 18 11:02:22 2010 +0200
+++ b/devtools/qunit.py	Mon Oct 18 11:04:19 2010 +0200
@@ -9,9 +9,8 @@
 
 # imported by default to simplify further import statements
 from logilab.common.testlib import unittest_main, with_tempdir, InnerTest
+from logilab.common.shellutils import getlogin
 
-import os
-from os.path import expanduser
 import cubicweb
 from cubicweb.view import StartupView
 from cubicweb.web.controller import Controller
@@ -54,8 +53,8 @@
         stdout = TemporaryFile()
         stderr = TemporaryFile()
         try:
-            home = expanduser('~')
-            user = os.getlogin()
+            home = osp.expanduser('~')
+            user = getlogin()
             assert os.access(home, os.W_OK), \
                    'No write access to your home directory, Firefox will crash.'\
                    ' Are you sure "%s" is a valid home  for user "%s"' % (home, user)