Skip to content

Commit e6f90d9

Browse files
committed
fix some spacing and linting errors
1 parent b904308 commit e6f90d9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pandas/tests/indexing/test_iloc.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,8 @@ def test_loc_identity_slice_returns_new_object(self):
596596
# GH13873
597597
df = DataFrame({'a': [1, 2, 3]})
598598
result = df.iloc[:]
599-
assert not result is df
599+
assert result is not df
600+
600601
# should be a shallow copy
601602
df['a'] = [4, 4, 4]
602603
assert (result['a'] == 4).all()

pandas/tests/indexing/test_loc.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,8 @@ def test_loc_identity_slice_returns_new_object(self):
635635
# GH13873
636636
df = DataFrame({'a': [1, 2, 3]})
637637
result = df.loc[:]
638-
assert not result is df
638+
assert result is not df
639+
639640
# should be a shallow copy
640641
df['a'] = [4, 4, 4]
641642
assert (result['a'] == 4).all()

0 commit comments

Comments
 (0)