Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testExpandUser fails on cygwin #37

Closed
ffigiel opened this issue Apr 18, 2015 · 0 comments
Closed

testExpandUser fails on cygwin #37

ffigiel opened this issue Apr 18, 2015 · 0 comments
Labels

Comments

@ffigiel
Copy link

ffigiel commented Apr 18, 2015

When running python fake_filesystem_test.py on cygwin x86_64 (On windows 8.1), testExpandUser fails.

Output:

FAIL: testExpandUser (__main__.FakePathModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "fake_filesystem_test.py", line 1858, in testExpandUser
    self.assertEqual('/root', self.path.expanduser('~root'))
AssertionError: '/root' != '~root'

After changing
1852 if sys.platform.startswith('win'): to:
1852 if sys.platform.startswith('win') or sys.platform == 'cygwin':,
the output is now:

FAIL: testExpandUser (__main__.FakePathModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "fake_filesystem_test.py", line 1854, in testExpandUser
    self.os.environ['USERPROFILE'].replace('\\', '/'))
AssertionError: '/home/Filip' != 'C:/Users/Filip'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants