[pypy-commit] pypy py3.5: add an extra test
arigo
pypy.commits at gmail.com
Sun Jan 8 10:59:40 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r89420:ea5c8eea66d5
Date: 2017-01-08 16:55 +0100
http://bitbucket.org/pypy/pypy/changeset/ea5c8eea66d5/
Log: add an extra test
diff --git a/lib-python/3/test/test_decimal.py b/lib-python/3/test/test_decimal.py
--- a/lib-python/3/test/test_decimal.py
+++ b/lib-python/3/test/test_decimal.py
@@ -4039,6 +4039,11 @@
self.assertRaises(TypeError, Context, flags=(0,1))
self.assertRaises(TypeError, Context, traps=(1,0))
+ def test_context_from_signaldict(self):
+ ctx = self.decimal.Context()
+ ctx2 = self.decimal.Context(flags=ctx.flags)
+ assert ctx.flags == ctx2.flags
+
class CContextInputValidation(ContextInputValidation):
decimal = C
class PyContextInputValidation(ContextInputValidation):
More information about the pypy-commit
mailing list