8000 STYLE: Specify bare exceptions in pandas/tests by alexander-ponomaroff · Pull Request #23370 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

STYLE: Specify bare exceptions in pandas/tests #23370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Nov 19, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
cd65d8e
Fix issue #22872 - Capture specific exceptions
alexander-ponomaroff Oct 27, 2018
066cdcf
Some fixes
alexander-ponomaroff Oct 27, 2018
318dd54
Further fixes
alexander-ponomaroff Oct 27, 2018
677b707
Test if the problem is in common.py line 217
alexander-ponomaroff Oct 27, 2018
fa0b03b
Issue confirmed line 217 of common.py, testing exceptions
alexander-ponomaroff Oct 27, 2018
2f57297
Working through exceptions
alexander-ponomaroff Oct 27, 2018
6cca7d7
Working through exceptions
alexander-ponomaroff Oct 27, 2018
6967323
Fix final bare excepts and stop ignoring E722
alexander-ponomaroff Oct 27, 2018
91c8af2
Added assertion error to line 217 of common.py
alexander-ponomaroff Oct 27, 2018
3fc4499
Line 217 still problematic
alexander-ponomaroff Oct 27, 2018
12b8c34
Rebase
alexander-ponomaroff Oct 31, 2018
f055a09
Update pymysql errors
alexander-ponomaroff Nov 5, 2018
4f08510
Merge branch 'master' into issue-22872
alexander-ponomaroff Nov 5, 2018
85e1c9c
Rebase
alexander-ponomaroff Nov 8, 2018
74ce78c
Merge conflict fix
alexander-ponomaroff Nov 8, 2018
39944b6
isort Run on pandas, test_sql.py removed from setup.cfg exclusion list
alexander-ponomaroff Nov 8, 2018
c276bd3
merge
alexander-ponomaroff Nov 8, 2018
48ad6f0
Reverted isort changes
alexander-ponomaroff Nov 8, 2018
c55692f
import pymysql in the beginning of function
alexander-ponomaroff Nov 10, 2018
ff36b21
Remove empty line 1819
alexander-ponomaroff Nov 13, 2018
bd3e656
Merge branch 'master' into PR_TOOL_MERGE_PR_23370
jreback Nov 18, 2018
6a86779
Merge branch 'master' into PR_TOOL_MERGE_PR_23370
jreback Nov 18, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reverted isort changes
  • Loading branch information
alexander-ponomaroff committed Nov 8, 2018
commit 48ad6f0fff92b5a4b00bc56ffb8fbdd424201756
4 changes: 2 additions & 2 deletions pandas/conftest.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import importlib
import os

import hypothesis
from hypothesis import strategies as st
import numpy as np
import pytest

from pandas.compat import PY3
import pandas.util._test_decorators as td

import hypothesis
from hypothesis import strategies as st
import pandas as pd

hypothesis.settings.register_profile(
Expand Down
29 changes: 14 additions & 15 deletions pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,29 @@
"""

from __future__ import print_function

import csv
from datetime import date, datetime, time
import pymysql
import pytest
import sqlite3
import warnings
import csv

import warnings
import numpy as np
import pytest
import pandas as pd

import pandas.compat as compat
from pandas.compat import PY36, lrange, range, string_types
from datetime import datetime, date, time

from pandas.core.dtypes.common import (
is_datetime64_dtype, is_datetime64tz_dtype, is_object_dtype)
is_object_dtype, is_datetime64_dtype,
is_datetime64tz_dtype)
from pandas import DataFrame, Series, Index, MultiIndex, isna, concat
from pandas import date_range, to_datetime, to_timedelta, Timestamp
import pandas.compat as compat
from pandas.compat import range, lrange, string_types, PY36

import pandas as pd
from pandas import (
DataFrame, Index, MultiIndex, Series, Timestamp, concat, date_range, isna,
to_datetime, to_timedelta)
import pandas.io.sql as sql
from pandas.io.sql import read_sql_table, read_sql_query
import pandas.util.testing as tm
import pymysql

import pandas.io.sql as sql
from pandas.io.sql import read_sql_query, read_sql_table

try:
import sqlalchemy
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ skip=
pandas/tests/io/test_feather.py,
pandas/tests/io/test_s3.py,
pandas/tests/io/test_html.py,
pandas/tests/io/test_sql.py,
pandas/tests/io/test_packers.py,
pandas/tests/io/test_stata.py,
pandas/tests/io/conftest.py,
Expand Down
0