diff --git a/guppy/heapy/test/test_Path.py b/guppy/heapy/test/test_Path.py index cf1a543..456c3e1 100644 --- a/guppy/heapy/test/test_Path.py +++ b/guppy/heapy/test/test_Path.py @@ -765,7 +765,11 @@ def str_address(x): return '
' b = list(it) self.aseq(str(a), str(b)) - self.aseq(o.getvalue(), """\ + # The sort order is based on the source set's byid partition (see + # Path.PathsIter.reset), which sorts based on the size, then render + # (see Part.IdentityPartition.__init__) + if sys.getsizeof(y) > sys.getsizeof(ob): + self.aseq(o.getvalue(), """\ 0: hpy().Root.i0_sysdict 0: Src.i0_modules['sys'].__dict__ 0: hpy().Root.i0_sysdict @@ -781,6 +785,23 @@ def str_address(x): return '' 0: <1 list: *1>[0] 1: <1 __main__.O: >.x """.replace('__main__', self.__module__)) + else: + self.aseq(o.getvalue(), """\ + 0: hpy().Root.i0_sysdict + 0: Src.i0_modules['sys'].__dict__ + 0: hpy().Root.i0_sysdict + 0: hpy().Root.i0_sysdict + 0: Src[0][0][0] + 0: Src[0][0][0] + 0: Src[0] + 0: Src.x + 0: <1 list: *1>[0] + 0: <1 list: *1>[0] + 0: <1 __main__.O: >.x + 1: <1 list: *1>[0] + 0: <1 __main__.O: >.x + 1: <1 list: *1>[0] +""".replace('__main__', self.__module__)) def test_2(self): # To assist interactivity,