[pypy-commit] pypy py3.5: fix test
arigo
pypy.commits at gmail.com
Tue Nov 29 04:07:01 EST 2016
Author: Armin Rigo <arigo at 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
More information about the pypy-commit
mailing list