fix fakeenv creation when used from a non-primary volume

This commit is contained in:
Fabien C. Y. Benureau 2018-03-22 13:47:27 +09:00
parent 47b69820b8
commit 9a6db894d8

View File

@ -92,6 +92,7 @@ class TestFakeFs(fake_filesystem_unittest.TestCase):
def setUp(self):
self.rootpath = os.path.abspath(os.path.dirname(__file__))
self.setUpPyfakefs()
self.fs.CreateDirectory(os.path.expanduser('~'))
self.fs.CreateDirectory(self.rootpath)
os.chdir(self.rootpath)