Skip to content

Commit

Permalink
Disable unserialized arguments check for py2
Browse files Browse the repository at this point in the history
  • Loading branch information
aadamson committed Jan 7, 2019
1 parent 1245bd8 commit 9b516b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testing/acceptance_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import re
import sys
import textwrap

import py
Expand Down Expand Up @@ -777,6 +778,9 @@ def test_unserializable_warning_details(self, testdir, n):
"""Check that warnings with unserializable _WARNING_DETAILS are
handled correctly (#379).
"""
if sys.version_info[0] < 3:
# The issue is only present in Python 3 warnings
return
testdir.makepyfile(
"""
import warnings, pytest
Expand Down

0 comments on commit 9b516b0

Please sign in to comment.