jborean93 / pyspnego

Python SPNEGO authentication library
MIT License
52 stars 11 forks source link

Fix enum str representation for python 3.11 changes #45

Closed jborean93 closed 2 years ago

jborean93 commented 2 years ago

Python 3.11 changed the way enums are represented with str(). This makes sure our use of this stays the same across versions by manually using the original form for things that are publicly exposed.

Fixes https://github.com/jborean93/pyspnego/issues/42

codecov[bot] commented 2 years ago

Codecov Report

Merging #45 (eb67d4d) into main (17a3eec) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #45   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files          30       30           
  Lines        4342     4342           
=======================================
  Hits         4341     4341           
  Misses          1        1           
Flag Coverage Δ
macOS 93.34% <50.00%> (ø)
py3.10 99.95% <100.00%> (ø)
py3.11-dev 99.95% <100.00%> (?)
py3.6 95.85% <50.00%> (-4.13%) :arrow_down:
py3.7 95.82% <50.00%> (-4.14%) :arrow_down:
py3.8 99.86% <100.00%> (-0.10%) :arrow_down:
py3.9 99.86% <100.00%> (-0.10%) :arrow_down:
ubuntu 95.82% <50.00%> (ø)
windows 94.26% <100.00%> (-0.03%) :arrow_down:
x64 99.97% <100.00%> (ø)
x86 94.24% <100.00%> (-0.03%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/spnego/_asn1.py 100.00% <ø> (ø)
src/spnego/_sspi.py 100.00% <100.00%> (ø)
src/spnego/channel_bindings.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.