Skip to content

Commit ef387e1

Browse files
committed
Merge pull request #11539 from sieben/useless_semicolon
Remove useless semicolon
2 parents 450d040 + 3bb9f2e commit ef387e1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

pandas/io/tests/test_json/test_ujson.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def testFloatMax(self):
10041004
assert_approx_equal(np.float64(ujson.decode(ujson.encode(num, double_precision=15))), num, 15)
10051005

10061006
def testArrays(self):
1007-
arr = np.arange(100);
1007+
arr = np.arange(100)
10081008

10091009
arr = arr.reshape((10, 10))
10101010
tm.assert_numpy_array_equal(np.array(ujson.decode(ujson.encode(arr))), arr)
@@ -1018,7 +1018,7 @@ def testArrays(self):
10181018
tm.assert_numpy_array_equal(np.array(ujson.decode(ujson.encode(arr))), arr)
10191019
tm.assert_numpy_array_equal(ujson.decode(ujson.encode(arr), numpy=True), arr)
10201020

1021-
arr = np.arange(96);
1021+
arr = np.arange(96)
10221022
arr = arr.reshape((2, 2, 2, 2, 3, 2))
10231023
tm.assert_numpy_array_equal(np.array(ujson.decode(ujson.encode(arr))), arr)
10241024
tm.assert_numpy_array_equal(ujson.decode(ujson.encode(arr), numpy=True), arr)
@@ -1028,7 +1028,7 @@ def testArrays(self):
10281028
arr = np.array(l)
10291029
tm.assert_numpy_array_equal(np.array(ujson.decode(ujson.encode(arr))), arr)
10301030

1031-
arr = np.arange(100.202, 200.202, 1, dtype=np.float32);
1031+
arr = np.arange(100.202, 200.202, 1, dtype=np.float32)
10321032
arr = arr.reshape((5, 5, 4))
10331033
outp = np.array(ujson.decode(ujson.encode(arr)), dtype=np.float32)
10341034
assert_array_almost_equal_nulp(arr, outp)

pandas/tests/test_series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6074,7 +6074,7 @@ def test_getitem_setitem_datetimeindex(self):
60746074
assert_series_equal(result, ts)
60756075

60766076
def test_getitem_setitem_datetime_tz_pytz(self):
6077-
tm._skip_if_no_pytz();
6077+
tm._skip_if_no_pytz()
60786078
from pytz import timezone as tz
60796079

60806080
from pandas import date_range
@@ -6110,7 +6110,7 @@ def test_getitem_setitem_datetime_tz_pytz(self):
61106110

61116111

61126112
def test_getitem_setitem_datetime_tz_dateutil(self):
6113-
tm._skip_if_no_dateutil();
6113+
tm._skip_if_no_dateutil()
61146114
from dateutil.tz import tzutc
61156115
from pandas.tslib import _dateutil_gettz as gettz
61166116

pandas/util/testing.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ def assertRaises(_exception, _callable=None, *args, **kwargs):
18861886
In addition to using it as a contextmanager, you can also use it as a
18871887
function, just like the normal assertRaises
18881888
1889-
>>> assertRaises(TypeError, ",".join, [1, 3, 5]);
1889+
>>> assertRaises(TypeError, ",".join, [1, 3, 5])
18901890
"""
18911891
manager = _AssertRaisesContextmanager(exception=_exception)
18921892
# don't return anything if used in function form
@@ -1907,18 +1907,18 @@ def assertRaisesRegexp(_exception, _regexp, _callable=None, *args, **kwargs):
19071907
19081908
You can pass either a regular expression or a compiled regular expression object.
19091909
>>> assertRaisesRegexp(ValueError, 'invalid literal for.*XYZ',
1910-
... int, 'XYZ');
1910+
... int, 'XYZ')
19111911
>>> import re
1912-
>>> assertRaisesRegexp(ValueError, re.compile('literal'), int, 'XYZ');
1912+
>>> assertRaisesRegexp(ValueError, re.compile('literal'), int, 'XYZ')
19131913
19141914
If an exception of a different type is raised, it bubbles up.
19151915
1916-
>>> assertRaisesRegexp(TypeError, 'literal', int, 'XYZ');
1916+
>>> assertRaisesRegexp(TypeError, 'literal', int, 'XYZ')
19171917
Traceback (most recent call last):
19181918
...
19191919
ValueError: invalid literal for int() with base 10: 'XYZ'
19201920
>>> dct = dict()
1921-
>>> assertRaisesRegexp(KeyError, 'pear', dct.__getitem__, 'apple');
1921+
>>> assertRaisesRegexp(KeyError, 'pear', dct.__getitem__, 'apple')
19221922
Traceback (most recent call last):
19231923
...
19241924
AssertionError: "pear" does not match "'apple'"

0 commit comments

Comments
 (0)