Exemplo n.º 1
0
 def test_getlogin(self):
     try:
         expected = os.getlogin()
     except OSError as e:
         py.test.skip("the underlying os.getlogin() failed: %s" % e)
     data = rposix.getlogin()
     assert data == expected
Exemplo n.º 2
0
 def test_getlogin(self):
     try:
         expected = os.getlogin()
     except OSError as e:
         py.test.skip("the underlying os.getlogin() failed: %s" % e)
     data = rposix.getlogin()
     assert data == expected