TST: Fixing bug in skipping db tests by default
State: closed

Fixing bug introduced in #24492. Skipping db tests fails with `SyntaxError` when `pytest` `-m` parameter is not specified.

Reported in #24485#issuecomment-450600185


Labels:
name: Bug
name: Testing
description: pandas testing functions or related to the test suite

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=h1) Report
> Merging [#24513](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/592eb5eeecc4bfd4b1d1588eac7135f394b73006?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/24513/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24513   +/-   ##
=======================================
  Coverage   31.89%   31.89%           
=======================================
  Files         166      166           
  Lines       52421    52421           
=======================================
  Hits        16722    16722           
  Misses      35699    35699
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `30.29% <ø> (ø)` | :arrow_up: |
| #single | `31.89% <ø> (ø)` | :arrow_up: |


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=footer). Last update [592eb5e...ffbc515](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=h1) Report
> Merging [#24513](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/592eb5eeecc4bfd4b1d1588eac7135f394b73006?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/24513/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24513   +/-   ##
=======================================
  Coverage   31.89%   31.89%           
=======================================
  Files         166      166           
  Lines       52421    52421           
=======================================
  Hits        16722    16722           
  Misses      35699    35699
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `30.29% <ø> (ø)` | :arrow_up: |
| #single | `31.89% <ø> (ø)` | :arrow_up: |


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=footer). Last update [592eb5e...ffbc515](https://codecov.io/gh/pandas-dev/pandas/pull/24513?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

thanks