Author: Armin Rigo <ar...@tunes.org> Branch: py3.5 Changeset: r88725:e4e91dd9fe93 Date: 2016-11-29 10:06 +0100 http://bitbucket.org/pypy/pypy/changeset/e4e91dd9fe93/
Log: fix test diff --git a/lib-python/3/test/test_sys.py b/lib-python/3/test/test_sys.py --- a/lib-python/3/test/test_sys.py +++ b/lib-python/3/test/test_sys.py @@ -811,7 +811,12 @@ ref = AtExit() """ rc, stdout, stderr = assert_python_ok('-c', code) - self.assertEqual(stdout.rstrip(), b'True') + if test.support.check_impl_detail(cpython=True): + self.assertEqual(stdout.rstrip(), b'True') + else: + # the __del__ method may or may not have been called + # in other Python implementations + self.assertIn(stdout.rstrip(), {b'True', b''}) @test.support.cpython_only _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit