Skip to content

Commit

Permalink
Attempt to fix Pytest error in Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesParrott committed Sep 20, 2024
1 parent 3063d27 commit fb03fe7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@
Many thanks,
""")
logger.warning(message)
warnings.showwarning(
message,
category=UserWarning,
filename=__name__,
lineno=115,
)
warning = UserWarning(message)
warnings.warn(warning)
# warnings.showwarning(
# message,
# category=UserWarning,
# filename=__name__,
# lineno=115,
# )


# Helpers
Expand Down

0 comments on commit fb03fe7

Please sign in to comment.