diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-03-07 05:46:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 05:46:10 (GMT) |
commit | 7592c0a686a80b9fbe2e6d519a486aca58b3260b (patch) | |
tree | 96aeaf8148cb5d139cd252b8d20984e4d6417cbd /Lib/test | |
parent | 387a055261267f5fafd2c12eafef49759c94704f (diff) | |
download | cpython-7592c0a686a80b9fbe2e6d519a486aca58b3260b.zip cpython-7592c0a686a80b9fbe2e6d519a486aca58b3260b.tar.gz cpython-7592c0a686a80b9fbe2e6d519a486aca58b3260b.tar.bz2 |
bpo-32969: Expose some missing constants in zlib and fix the doc (GH-5988)
(cherry picked from commit bc3f2289b9007396bfb7f986bee477b6176c1822)
Co-authored-by: Xiang Zhang <angwerzx@126.com>
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_zlib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 8e29b1b..5b58c77 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -434,7 +434,8 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase): def test_flushes(self): # Test flush() with the various options, using all the # different levels in order to provide more variations. - sync_opt = ['Z_NO_FLUSH', 'Z_SYNC_FLUSH', 'Z_FULL_FLUSH'] + sync_opt = ['Z_NO_FLUSH', 'Z_SYNC_FLUSH', 'Z_FULL_FLUSH', + 'Z_PARTIAL_FLUSH', 'Z_BLOCK'] sync_opt = [getattr(zlib, opt) for opt in sync_opt if hasattr(zlib, opt)] data = HAMLET_SCENE * 8 |