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

os.remove doesn't work with relative paths #31

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment
Closed

os.remove doesn't work with relative paths #31

GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment
Labels

Comments

@GoogleCodeExporter
Copy link

The 'remove' method in the FakeOsModule doesn't support relative paths.

What steps will reproduce the problem?

fake_os.mkdir("foo")
fake_os.mkdir("foo/bar")  # works
fake_os.chdir("foo")  # works
fake_os.remove("bar") # remove looks for "bar" at the root

What is the expected output? What do you see instead?
expected: file is deleted
actual outcome: 'bar' does not exist in fake filesystem

What version of the product are you using? On what operating system?
2.4, Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by londinop on 25 Nov 2014 at 3:28

@jmcgeheeiv
Copy link
Contributor

Thanks for the fix, Filip. It's great to see the bug backlog going down.

Because of the way I did the merge, GitHub thinks your pull request has not been merged, but it has.

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

3 participants