Skip to content

Commit

Permalink
Fix pymongo version issue. Closes #45
Browse files Browse the repository at this point in the history
  • Loading branch information
elecay committed Dec 6, 2019
1 parent bc7d75d commit 21a33e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mongoaudit/testers/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def enabled(test):
return TestResult(success=True, severity=OMITTED)

try:
with test.tester.conn._socket_for_writes() as socket_info:
with test.tester.conn._socket_for_writes(None) as socket_info:
socket = socket_info.sock
return TestResult(success=isinstance(socket, ssl.SSLSocket))
except (KeyError, AttributeError):
Expand All @@ -36,7 +36,7 @@ def valid(test):
if not enabled(test) is True:
return TestResult(success=True, severity=OMITTED)

with test.tester.conn._socket_for_writes() as socket_info:
with test.tester.conn._socket_for_writes(None) as socket_info:
cert = socket_info.sock.getpeercert()
if not cert:
return TestResult(success=True,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyinstaller==3.2.1
pymongo==3.3.1
pymongo==3.9.0
pytest==3.0.6
urwid==1.3.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
]
},
install_requires=[
'pymongo>=3.3.1',
'pymongo>=3.9.0',
'urwid>=1.3.1'
],
classifiers=[
Expand Down

0 comments on commit 21a33e1

Please sign in to comment.