Skip to content

Commit

Permalink
roll back and fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBarker-NOAA committed Mar 14, 2024
1 parent 76595db commit b088048
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion py_gd/py_gd.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ cdef FILE* open_file(file_path, str mode) except *:
work for ascii file paths.
"""
cdef FILE* fp = NULL
cdef bytes bmode = mode.encode('ascii')

file_path = os.fspath(file_path)

Expand Down
2 changes: 1 addition & 1 deletion py_gd/test/test_open_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_open_file(filename):

# try to read it (which implies it could be opened)

results = py_gd.py_gd._read_text_file(filename, encoding="utf-8")
results = py_gd.py_gd._read_text_file(path, encoding="utf-8")

assert results == contents

0 comments on commit b088048

Please sign in to comment.