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

fix(MFFileMgmt): remove string_to_file_path #1759

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

wpbonelli
Copy link
Member

There is a bug in Python's ntpath.join (the Windows implementation of os.path.join) which adds an extra leading slash to UNC paths. This is causing a test failure for MFFileMgmt.string_to_file_path, as far as I can tell only for Python>=3.11.1.

The string_to_file_path method seems unnecessary: the tests just assert that the arg value equals the return value. This PR removes the method.

@wpbonelli wpbonelli marked this pull request as ready for review April 6, 2023 16:01
@wpbonelli wpbonelli merged commit 6a8161a into modflowpy:develop Apr 6, 2023
@wpbonelli wpbonelli deleted the fix-mffilemgmt branch April 6, 2023 16:19
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.

1 participant