-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increment version to v2.1.0 and add Python2.x deprecation warning (#458)
* Increment version and add Python2.x deprecation warning Change test to actually test no warnings when on python3 flake8 compliant * fix development status classifier
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import sys | ||
|
||
|
||
def test_vcr_import_deprecation(recwarn): | ||
|
||
if 'vcr' in sys.modules: | ||
# Remove imported module entry if already loaded in another test | ||
del sys.modules['vcr'] | ||
|
||
import vcr # noqa: F401 | ||
|
||
if sys.version_info[0] == 2: | ||
assert len(recwarn) == 1 | ||
assert issubclass(recwarn[0].category, DeprecationWarning) | ||
else: | ||
assert len(recwarn) == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters