A test added in 1.2 thought to confirm a Python 2.7 behavior turns out to
be confirming the behavior only as of Python 2.7.8. Python bug #8743 still
impacts set comparison in Python 2.7.7 and earlier, so the test in question
involving AssociationSet no longer runs for these older Python 2.7
versions.
Change-Id: I4e5ab650fdcbfd215535c58438878e98ef924a9b
Fixes: #3265
--- /dev/null
+.. change::
+ :tags: bug, tests
+ :tickets: 3265
+
+ A test added in 1.2 thought to confirm a Python 2.7 behavior turns out to
+ be confirming the behavior only as of Python 2.7.8. Python bug #8743 still
+ impacts set comparison in Python 2.7.7 and earlier, so the test in question
+ involving AssociationSet no longer runs for these older Python 2.7
+ versions.
self.assert_((p1.children > other) == (control > other))
self.assert_((p1.children >= other) == (control >= other))
+ @testing.requires.python_fixed_issue_8743
def test_set_comparison_empty_to_empty(self):
- # test issue #3265 which appears to be python 2.6 specific
+ # test issue #3265 which was fixed in Python version 2.7.8
Parent = self.Parent
p1 = Parent('P1')
def no_mssql_freetds(self):
return self.mssql_freetds.not_()
+ @property
+ def python_fixed_issue_8743(self):
+ return exclusions.skip_if(
+ lambda: sys.version_info < (2, 7, 8),
+ "Python issue 8743 fixed in Python 2.7.8"
+ )
+
@property
def selectone(self):
"""target driver must support the literal statement 'select 1'"""