Skip to content

Fix fake_pathlib typo #1142

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

Merged
merged 1 commit into from
Mar 15, 2025
Merged

Conversation

jfindlay
Copy link
Contributor

@jfindlay jfindlay commented Mar 15, 2025

Describe the changes

Using the documentation as written without this change:

>>> from pyfakefs import fake_filesystem
>>>
>>> filesystem = fake_filesystem.FakeFilesystem()
>>> fake_pathlib_module = fake_filesystem.FakePathlibModule(filesystem)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jfindlay/.local/share/venvs/shell/lib/python3.12/site-packages/pyfakefs/fake_filesystem.py", line 3249, in __getattr__
    raise AttributeError(f"No attribute {name!r}.")
AttributeError: No attribute 'FakePathlibModule'.. Did you mean: 'FakePathModule'?

Tasks

  • For documentation changes: The Read the Docs preview builds and looks as expected

Using the documentation as written without this change:
```
>>> from pyfakefs import fake_filesystem
>>>
>>> filesystem = fake_filesystem.FakeFilesystem()
>>> fake_pathlib_module = fake_filesystem.FakePathlibModule(filesystem)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jfindlay/.local/share/venvs/shell/lib/python3.12/site-packages/pyfakefs/fake_filesystem.py", line 3249, in __getattr__
    raise AttributeError(f"No attribute {name!r}.")
AttributeError: No attribute 'FakePathlibModule'.. Did you mean: 'FakePathModule'?
```
Copy link
Member

@mrbean-bremen mrbean-bremen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mrbean-bremen mrbean-bremen merged commit 4b69449 into pytest-dev:main Mar 15, 2025
121 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants