Skip to content

Different behaviour if the directory exists on the real file system, or not (sqlite3) #852

Discussion options

You must be logged in to vote

Unfortunately, as I suspected, sqlite3 will not work nicely with pyfakefs. Opening files is done using the C interface of squite3 itself (e.g. sqlite3_open and related functions), and there is no way to patch this in Python code.
I will probably add sqlite3 to the list of modules not working with pyfakefs.
I've also just opened a new category "limitations" in the discussions, where I will move this and related issues.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nicolashainaux
Comment options

You must be logged in to vote
1 reply
@mrbean-bremen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #850 on July 02, 2023 12:10.