Skip to content

Commit 38b490c

Browse files
committed
fix flake8 errors
1 parent d3edc92 commit 38b490c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

win32ctypes/core/ctypes/_authentication.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from ctypes import POINTER, Structure, c_char_p, cast
1010
from ctypes.wintypes import (
1111
BOOL, DWORD, FILETIME, LPCWSTR, LPWSTR)
12-
from weakref import WeakKeyDictionary
1312

1413
from win32ctypes.core.compat import is_text
1514
from ._common import LPBYTE, _PyBytes_FromStringAndSize

win32ctypes/tests/test_authentication.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# This file is open source software distributed according to the terms in
66
# LICENSE.txt
77
#
8-
import gc
98
import unittest
109

1110
from win32ctypes.core import _backend
@@ -54,7 +53,6 @@ def test_fromdict(self):
5453
self.assertEqual(result.UserName, username)
5554
self.assertIsNone(result.TargetAlias)
5655

57-
5856
def test_roundtrip(self):
5957
# given
6058
username = 'john'
@@ -84,7 +82,7 @@ def test_roundtrip(self):
8482
if _backend == 'ctypes':
8583
self.assertIsInstance(result['LastWritten'], FILETIME)
8684
del result['LastWritten']
87-
result['CredentialBlob'] = result['CredentialBlob'].decode('utf-16')
85+
result['CredentialBlob'] = result['CredentialBlob'].decode('utf-16') # noqa
8886
attribute = result['Attributes'][0]
8987
attribute['Value'] = attribute['Value'].decode('utf-16')
9088
self.assertEqual(result, data)

win32ctypes/tests/test_win32cred.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def _demo_attributes(multiple=False):
4343
else:
4444
return (attribute1,)
4545

46+
4647
def _demo_credentials(UserName=u'jone', multiple=False):
4748
return {
4849
'Type': CRED_TYPE_GENERIC,
@@ -53,6 +54,7 @@ def _demo_credentials(UserName=u'jone', multiple=False):
5354
'Comment': u'Created by MiniPyWin32Cred test suite',
5455
'Persist': CRED_PERSIST_ENTERPRISE}
5556

57+
5658
TEST_SUPPORTED_CREDENTIALS = [
5759
(_demo_credentials(), _demo_attributes()),
5860
(_demo_credentials(UserName=None), _demo_attributes())]

0 commit comments

Comments
 (0)