Skip to content

Commit 37b0b32

Browse files
committed
Cleanups identified by transition to Ruff.
1 parent be94700 commit 37b0b32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_thirdparty.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_cryptography():
115115

116116
cert = x509.load_pem_x509_certificate(cert_pem, default_backend())
117117
domain = cert.subject.get_attributes_for_oid(NameOID.COMMON_NAME)[0].value
118-
assert "www.android.com" == domain
118+
assert domain == "www.android.com"
119119

120120

121121
@xfail_if_not_installed("pyspamsum")
@@ -177,7 +177,7 @@ def test_numpy():
177177
from numpy import array
178178

179179
# Numpy is the thousand pound gorilla packaging test.
180-
assert [4, 7] == (array([1, 2]) + array([3, 5])).tolist()
180+
assert (array([1, 2]) + array([3, 5])).tolist() == [4, 7]
181181

182182

183183
@xfail_if_not_installed("pandas")
@@ -196,6 +196,6 @@ def test_pandas():
196196
else:
197197
kwargs = {"lineterminator": "\n"}
198198

199-
assert (",Letter,Number\n0,alpha,1\n1,bravo,2\n2,charlie,3\n") == df.to_csv(
200-
**kwargs
199+
assert df.to_csv(**kwargs) == (
200+
",Letter,Number\n0,alpha,1\n1,bravo,2\n2,charlie,3\n"
201201
)

0 commit comments

Comments
 (0)