Skip to content

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

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions