Skip to content

Commit

Permalink
Use from array import array
Browse files Browse the repository at this point in the history
To cutdown on verbosity import the `array` object directly.
  • Loading branch information
jakirkham committed May 11, 2022
1 parent 74b4bf7 commit 01fd209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distributed/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import array
import asyncio
import contextvars
import functools
Expand All @@ -8,6 +7,7 @@
import socket
import traceback
import warnings
from array import array
from collections import deque
from time import sleep

Expand Down Expand Up @@ -255,7 +255,7 @@ def test_ensure_memoryview_empty():


def test_ensure_memoryview():
data = [b"1", memoryview(b"1"), bytearray(b"1"), array.array("B", b"1")]
data = [b"1", memoryview(b"1"), bytearray(b"1"), array("B", b"1")]
for d in data:
result = ensure_memoryview(d)
assert isinstance(result, memoryview)
Expand Down

0 comments on commit 01fd209

Please sign in to comment.