Skip to content

Commit

Permalink
Set default sys encoding for python 2.7 in test
Browse files Browse the repository at this point in the history
force-test skip-release
  • Loading branch information
Taapat authored Feb 1, 2025
1 parent 4bc1927 commit 7572a2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
import pytest
import sys

if sys.version_info.major < 3:
reload(sys)
sys.setdefaultencoding('utf8')

sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))


Expand Down

0 comments on commit 7572a2d

Please sign in to comment.