We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4040091 commit 1f26389Copy full SHA for 1f26389
setup.py
@@ -4,7 +4,7 @@
4
if vi < (3, 8):
5
raise RuntimeError('uvloop requires Python 3.8 or greater')
6
7
-if sys.platform in ('win32', 'cygwin', 'cli'):
+if sys.platform in {'win32', 'cygwin', 'cli'}:
8
raise RuntimeError('uvloop does not support Windows at the moment')
9
10
import os
tests/test_tcp.py
@@ -45,7 +45,7 @@ def eof_received(self):
45
self.state = 'EOF'
46
47
def connection_lost(self, exc):
48
- assert self.state in ('CONNECTED', 'EOF'), self.state
+ assert self.state in {'CONNECTED', 'EOF'}, self.state
49
self.state = 'CLOSED'
50
if self.done:
51
self.done.set_result(None)
0 commit comments