Drop support for EOL Python 2

This commit is contained in:
Hugo
2020-07-11 16:12:42 +03:00
committed by Zac-HD
parent 22ae7ff7af
commit 9decca0023

View File

@@ -1,6 +1,5 @@
import os import os
import re import re
import sys
import textwrap import textwrap
import py import py
@@ -883,9 +882,6 @@ 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