Disable unserialized arguments check for py2

This commit is contained in:
Alex Adamson
2019-01-07 18:43:59 -05:00
parent fa85371c73
commit ac2bf10fe2

View File

@@ -1,5 +1,6 @@
import os import os
import re import re
import sys
import textwrap import textwrap
import py import py
@@ -808,6 +809,9 @@ class TestWarnings:
"""Check that warnings with unserializable _WARNING_DETAILS are """Check that warnings with unserializable _WARNING_DETAILS are
handled correctly (#379). handled correctly (#379).
""" """
if sys.version_info[0] < 3:
# The issue is only present in Python 3 warnings
return
testdir.makepyfile( testdir.makepyfile(
""" """
import warnings, pytest import warnings, pytest