commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2020-06-05 19:59:18 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new.3606 (New) Package is "python-ddt" Fri Jun 5 19:59:18 2020 rev:11 rq:809724 version:1.4.1 Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2020-04-07 10:23:51.905998832 +0200 +++ /work/SRC/openSUSE:Factory/.python-ddt.new.3606/python-ddt.changes 2020-06-05 19:59:20.759758493 +0200 @@ -1,0 +2,11 @@ +Thu May 28 03:09:23 UTC 2020 - Steve Kowalik + +- Update to 1.4.1: + * Remove nose dependency for good + * Require enum34 for Python 2.x. + * Improved code comments and renamed the test name format enum class + * Use enum instead of bool to allow easier future changes + * Allow index-only test names +- Switch to using %pytest macro now that nose is not required + +--- Old: ddt-1.3.1.tar.gz New: ddt-1.4.1.tar.gz Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.sFIj9H/_old 2020-06-05 19:59:21.291760333 +0200 +++ /var/tmp/diff_new_pack.sFIj9H/_new 2020-06-05 19:59:21.291760333 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-ddt -Version:1.3.1 +Version:1.4.1 Release:0 Summary:Data-Driven/Decorated Tests License:MIT @@ -31,7 +31,7 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML} -BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest} %if %{with python2} BuildRequires: python-mock %endif @@ -52,7 +52,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %doc CONTRIBUTING.md README.md ++ ddt-1.3.1.tar.gz -> ddt-1.4.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.3.1/PKG-INFO new/ddt-1.4.1/PKG-INFO --- old/ddt-1.3.1/PKG-INFO 2020-03-18 04:00:13.898331400 +0100 +++ new/ddt-1.4.1/PKG-INFO 2020-05-15 04:43:34.506477800 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.3.1 +Version: 1.4.1 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/datadriventests/ddt Author: Carles Barrobés diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.3.1/ddt.egg-info/PKG-INFO new/ddt-1.4.1/ddt.egg-info/PKG-INFO --- old/ddt-1.3.1/ddt.egg-info/PKG-INFO 2020-03-18 04:00:13.0 +0100 +++ new/ddt-1.4.1/ddt.egg-info/PKG-INFO 2020-05-15 04:43:34.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.3.1 +Version: 1.4.1 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/datadriventests/ddt Author: Carles Barrobés diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.3.1/ddt.egg-info/SOURCES.txt new/ddt-1.4.1/ddt.egg-info/SOURCES.txt --- old/ddt-1.3.1/ddt.egg-info/SOURCES.txt 2020-03-18 04:00:13.0 +0100 +++ new/ddt-1.4.1/ddt.egg-info/SOURCES.txt 2020-05-15 04:43:34.0 +0200 @@ -8,6 +8,7 @@ ddt.egg-info/PKG-INFO ddt.egg-info/SOURCES.txt ddt.egg-info/dependency_links.txt +ddt.egg-info/requires.txt ddt.egg-info/top_level.txt test/__init__.py test/mycode.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.3.1/ddt.egg-info/requires.txt new/ddt-1.4.1/ddt.egg-info/requires.txt --- old/ddt-1.3.1/ddt.egg-info/requires.txt 1970-01-01 01:00:00.0 +0100 +++ new/ddt-1.4.1/ddt.egg-info/requires.txt 2020-05-15 04:43:34.0 +0200 @@ -0,0 +1,3 @@ + +[:python_version < "3"] +enum34 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.3.1/ddt.py new/ddt-1.4.1/ddt.py --- old/ddt-1.3.1/ddt.py2020-03-18 04:00:07.0 +0100 +++ new/ddt-1.4.1/ddt.py2020-05-15 04:43:25.0 +0200 @@ -5,11 +5,12 @@ # DDT is licensed under the MIT License, included in # https://github.com/datadriventests/ddt/blob/master/LICENSE.md +import codecs import inspect import json import os import re -import codecs +from enum import Enum, unique from functools import wraps try: @@ -19,7 +20,7 @@ else: _have_yaml = True -__version__ = '1.3.1' +__version__ = '1.4.1' # These attributes will not conflict with any real python attribute # They are added to the decorated test method and processed later @@ -38,6 +39,33 @@ trivial_types =
commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2020-04-07 10:23:39 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new.3248 (New) Package is "python-ddt" Tue Apr 7 10:23:39 2020 rev:10 rq:790849 version:1.3.1 Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2020-03-27 00:24:15.864225408 +0100 +++ /work/SRC/openSUSE:Factory/.python-ddt.new.3248/python-ddt.changes 2020-04-07 10:23:51.905998832 +0200 @@ -1,0 +2,6 @@ +Thu Apr 2 10:30:10 UTC 2020 - Marketa Calabkova + +- update to 1.3.1 + * Switched from Travis to Github Actions for builds and release upload. + +--- Old: ddt-1.3.0.tar.gz New: ddt-1.3.1.tar.gz Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.mY3zK7/_old 2020-04-07 10:23:52.585999589 +0200 +++ /var/tmp/diff_new_pack.mY3zK7/_new 2020-04-07 10:23:52.58593 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-ddt -Version:1.3.0 +Version:1.3.1 Release:0 Summary:Data-Driven/Decorated Tests License:MIT ++ ddt-1.3.0.tar.gz -> ddt-1.3.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.3.0/PKG-INFO new/ddt-1.3.1/PKG-INFO --- old/ddt-1.3.0/PKG-INFO 2020-03-10 03:37:11.0 +0100 +++ new/ddt-1.3.1/PKG-INFO 2020-03-18 04:00:13.898331400 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.3.0 +Version: 1.3.1 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/datadriventests/ddt Author: Carles Barrobés diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.3.0/README.md new/ddt-1.3.1/README.md --- old/ddt-1.3.0/README.md 2020-03-04 04:34:42.0 +0100 +++ new/ddt-1.3.1/README.md 2020-03-18 04:00:07.0 +0100 @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/datadriventests/ddt.svg)](https://travis-ci.org/datadriventests/ddt) +![Run Tests](https://github.com/datadriventests/ddt/workflows/Run%20Tests/badge.svg?branch=master) [![codecov.io](https://codecov.io/github/datadriventests/ddt/coverage.svg?branch=master)](https://codecov.io/github/datadriventests/ddt) [![Version](https://img.shields.io/pypi/v/ddt.svg)](https://pypi.python.org/pypi/ddt) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.3.0/ddt.egg-info/PKG-INFO new/ddt-1.3.1/ddt.egg-info/PKG-INFO --- old/ddt-1.3.0/ddt.egg-info/PKG-INFO 2020-03-10 03:37:11.0 +0100 +++ new/ddt-1.3.1/ddt.egg-info/PKG-INFO 2020-03-18 04:00:13.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.3.0 +Version: 1.3.1 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/datadriventests/ddt Author: Carles Barrobés diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.3.0/ddt.py new/ddt-1.3.1/ddt.py --- old/ddt-1.3.0/ddt.py2020-03-10 03:36:15.0 +0100 +++ new/ddt-1.3.1/ddt.py2020-03-18 04:00:07.0 +0100 @@ -19,7 +19,7 @@ else: _have_yaml = True -__version__ = '1.3.0' +__version__ = '1.3.1' # These attributes will not conflict with any real python attribute # They are added to the decorated test method and processed later
commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2020-03-27 00:24:14 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new.3160 (New) Package is "python-ddt" Fri Mar 27 00:24:14 2020 rev:9 rq:785070 version:1.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2020-01-24 14:21:17.506622032 +0100 +++ /work/SRC/openSUSE:Factory/.python-ddt.new.3160/python-ddt.changes 2020-03-27 00:24:15.864225408 +0100 @@ -1,0 +2,7 @@ +Sat Mar 14 15:49:10 UTC 2020 - Dirk Mueller + +- update to 1.3.0: + * Added the ability to specify the YAML loader in the file_data decorator (#77) + * Dropped Python 3.4 support + +--- Old: ddt-1.2.2.tar.gz New: ddt-1.3.0.tar.gz Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.fZbFb4/_old 2020-03-27 00:24:16.776225870 +0100 +++ /var/tmp/diff_new_pack.fZbFb4/_new 2020-03-27 00:24:16.780225872 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-ddt -Version:1.2.2 +Version:1.3.0 Release:0 Summary:Data-Driven/Decorated Tests License:MIT ++ ddt-1.2.2.tar.gz -> ddt-1.3.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.2/PKG-INFO new/ddt-1.3.0/PKG-INFO --- old/ddt-1.2.2/PKG-INFO 2019-12-02 07:22:06.0 +0100 +++ new/ddt-1.3.0/PKG-INFO 2020-03-10 03:37:11.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.2.2 +Version: 1.3.0 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/datadriventests/ddt Author: Carles Barrobés @@ -16,6 +16,5 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Topic :: Software Development :: Testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.2/ddt.egg-info/PKG-INFO new/ddt-1.3.0/ddt.egg-info/PKG-INFO --- old/ddt-1.2.2/ddt.egg-info/PKG-INFO 2019-12-02 07:22:06.0 +0100 +++ new/ddt-1.3.0/ddt.egg-info/PKG-INFO 2020-03-10 03:37:11.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.2.2 +Version: 1.3.0 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/datadriventests/ddt Author: Carles Barrobés @@ -16,6 +16,5 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Topic :: Software Development :: Testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.2/ddt.egg-info/SOURCES.txt new/ddt-1.3.0/ddt.egg-info/SOURCES.txt --- old/ddt-1.2.2/ddt.egg-info/SOURCES.txt 2019-12-02 07:22:06.0 +0100 +++ new/ddt-1.3.0/ddt.egg-info/SOURCES.txt 2020-03-10 03:37:11.0 +0100 @@ -11,11 +11,13 @@ ddt.egg-info/top_level.txt test/__init__.py test/mycode.py -test/test_data_dict.json -test/test_data_dict.yaml -test/test_data_dict_dict.json -test/test_data_dict_dict.yaml -test/test_data_list.json -test/test_data_list.yaml test/test_example.py -test/test_functional.py \ No newline at end of file +test/test_functional.py +test/data/test_custom_yaml_loader.yaml +test/data/test_data_dict.json +test/data/test_data_dict.yaml +test/data/test_data_dict_dict.json +test/data/test_data_dict_dict.yaml +test/data/test_data_list.json +test/data/test_data_list.yaml +test/data/test_functional_custom_tags.yaml \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.2/ddt.py new/ddt-1.3.0/ddt.py --- old/ddt-1.2.2/ddt.py2019-12-02 07:18:08.0 +0100 +++ new/ddt-1.3.0/ddt.py2020-03-10 03:36:15.0 +0100 @@ -19,16 +19,17 @@ else: _have_yaml = True -__version__ = '1.2.2' +__version__ = '1.3.0' # These attributes will not conflict with any real python attribute # They are added to the decorated test method and processed later # by the `ddt` class decorator. -DATA_ATTR = '%values' # store the data the test must run with -FILE_ATTR = '%file_path' # store the path to JSON file -UNPACK_ATTR = '%unpack'# remember that we have to unpack
commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2020-01-24 14:21:06 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new.26092 (New) Package is "python-ddt" Fri Jan 24 14:21:06 2020 rev:8 rq:766250 version:1.2.2 Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2019-03-12 09:44:49.467757747 +0100 +++ /work/SRC/openSUSE:Factory/.python-ddt.new.26092/python-ddt.changes 2020-01-24 14:21:17.506622032 +0100 @@ -1,0 +2,6 @@ +Wed Jan 22 10:35:00 UTC 2020 - Tomáš Chvátal + +- Update to 1.2.2: + * use mock only when it is really needed + +--- Old: ddt-1.2.1.tar.gz New: ddt-1.2.2.tar.gz Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.6dPcj1/_old 2020-01-24 14:21:18.562622403 +0100 +++ /var/tmp/diff_new_pack.6dPcj1/_new 2020-01-24 14:21:18.570622405 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-ddt # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-ddt -Version:1.2.1 +Version:1.2.2 Release:0 Summary:Data-Driven/Decorated Tests License:MIT -Group: Development/Languages/Python URL:https://github.com/txels/ddt Source: https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz BuildRequires: %{python_module setuptools} @@ -31,8 +31,10 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML} -BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} +%if %{with python2} +BuildRequires: python-mock +%endif # /SECTION %python_subpackages ++ ddt-1.2.1.tar.gz -> ddt-1.2.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.1/PKG-INFO new/ddt-1.2.2/PKG-INFO --- old/ddt-1.2.1/PKG-INFO 2019-02-24 08:17:50.0 +0100 +++ new/ddt-1.2.2/PKG-INFO 2019-12-02 07:22:06.0 +0100 @@ -1,8 +1,8 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.2.1 +Version: 1.2.2 Summary: Data-Driven/Decorated Tests -Home-page: https://github.com/txels/ddt +Home-page: https://github.com/datadriventests/ddt Author: Carles Barrobés Author-email: car...@barrobes.com License: UNKNOWN @@ -16,7 +16,6 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Topic :: Software Development :: Testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.1/README.md new/ddt-1.2.2/README.md --- old/ddt-1.2.1/README.md 2019-02-24 05:12:08.0 +0100 +++ new/ddt-1.2.2/README.md 2019-12-02 07:11:37.0 +0100 @@ -1,6 +1,5 @@ -[![Build Status](https://travis-ci.org/txels/ddt.svg)](https://travis-ci.org/txels/ddt) -[![Code Health](https://landscape.io/github/txels/ddt/master/landscape.svg)](https://landscape.io/github/txels/ddt/master) -[![codecov.io](https://codecov.io/github/txels/ddt/coverage.svg?branch=master)](https://codecov.io/github/txels/ddt) +[![Build Status](https://travis-ci.org/datadriventests/ddt.svg)](https://travis-ci.org/datadriventests/ddt) +[![codecov.io](https://codecov.io/github/datadriventests/ddt/coverage.svg?branch=master)](https://codecov.io/github/datadriventests/ddt) [![Version](https://img.shields.io/pypi/v/ddt.svg)](https://pypi.python.org/pypi/ddt) [![Downloads](https://img.shields.io/pypi/dm/ddt.svg)](https://pypi.python.org/pypi/ddt) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.1/ddt.egg-info/PKG-INFO new/ddt-1.2.2/ddt.egg-info/PKG-INFO --- old/ddt-1.2.1/ddt.egg-info/PKG-INFO 2019-02-24 08:17:50.0 +0100 +++ new/ddt-1.2.2/ddt.egg-info/PKG-INFO 2019-12-02 07:22:06.0 +0100 @@ -1,8 +1,8 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.2.1 +Version: 1.2.2 Summary: Data-Driven/Decorated Tests -Home-page: https://github.com/txels/ddt +Home-page: https://github.com/datadriventests/ddt Author: Carles Barrobés Author-email: car...@barrobes.com License: UNKNOWN @@
commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2019-03-12 09:44:48 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new.28833 (New) Package is "python-ddt" Tue Mar 12 09:44:48 2019 rev:7 rq:682478 version:1.2.1 Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2018-12-06 12:14:36.509694408 +0100 +++ /work/SRC/openSUSE:Factory/.python-ddt.new.28833/python-ddt.changes 2019-03-12 09:44:49.467757747 +0100 @@ -1,0 +2,6 @@ +Thu Mar 7 14:07:30 UTC 2019 - Tomáš Chvátal + +- Update to 1.2.1: + * Merge pull request #68 from datadriventests/fix-docstring-behavior + +--- Old: ddt-1.2.0.tar.gz New: ddt-1.2.1.tar.gz Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.2lW5Ah/_old 2019-03-12 09:44:50.003756244 +0100 +++ /var/tmp/diff_new_pack.2lW5Ah/_new 2019-03-12 09:44:50.003756244 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-ddt # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,23 +18,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ddt -Version:1.2.0 +Version:1.2.1 Release:0 Summary:Data-Driven/Decorated Tests License:MIT Group: Development/Languages/Python -Url:https://github.com/txels/ddt +URL:https://github.com/txels/ddt Source: https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} # /SECTION -BuildArch: noarch - %python_subpackages %description @@ -44,10 +43,10 @@ %setup -q -n ddt-%{version} %build -%{python_build} +%python_build %install -%{python_install} +%python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check ++ ddt-1.2.0.tar.gz -> ddt-1.2.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.0/PKG-INFO new/ddt-1.2.1/PKG-INFO --- old/ddt-1.2.0/PKG-INFO 2018-07-17 22:52:34.0 +0200 +++ new/ddt-1.2.1/PKG-INFO 2019-02-24 08:17:50.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.2.0 +Version: 1.2.1 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/txels/ddt Author: Carles Barrobés diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.0/README.md new/ddt-1.2.1/README.md --- old/ddt-1.2.0/README.md 2018-05-13 15:48:37.0 +0200 +++ new/ddt-1.2.1/README.md 2019-02-24 05:12:08.0 +0100 @@ -1,7 +1,7 @@ [![Build Status](https://travis-ci.org/txels/ddt.svg)](https://travis-ci.org/txels/ddt) [![Code Health](https://landscape.io/github/txels/ddt/master/landscape.svg)](https://landscape.io/github/txels/ddt/master) - [![codecov.io](https://codecov.io/github/txels/ddt/coverage.svg?branch=master)](https://codecov.io/github/txels/ddt) + [![Version](https://img.shields.io/pypi/v/ddt.svg)](https://pypi.python.org/pypi/ddt) [![Downloads](https://img.shields.io/pypi/dm/ddt.svg)](https://pypi.python.org/pypi/ddt) @@ -14,7 +14,7 @@ ```pip install ddt``` -More info at http://ddt.readthedocs.org/ +Check out [the documentation](http://ddt.readthedocs.org/) for more details. See [Contributing](CONTRIBUTING.md) if you plan to contribute to `ddt`, and [License](LICENSE.md) if you plan to use it. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.0/ddt.egg-info/PKG-INFO new/ddt-1.2.1/ddt.egg-info/PKG-INFO --- old/ddt-1.2.0/ddt.egg-info/PKG-INFO 2018-07-17 22:52:34.0 +0200 +++ new/ddt-1.2.1/ddt.egg-info/PKG-INFO 2019-02-24 08:17:50.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.2.0 +Version: 1.2.1 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/txels/ddt Author: Carles Barrobés diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.2.0/ddt.py new/ddt-1.2.1/ddt.py --- old/ddt-1.2.0/ddt.py2018-07-17 22:42:05.0 +0200 +++ new/ddt-1.2.1/ddt.py2019
commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2018-12-06 12:14:35 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new.19453 (New) Package is "python-ddt" Thu Dec 6 12:14:35 2018 rev:6 rq:654006 version:1.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2018-08-08 14:54:44.229672602 +0200 +++ /work/SRC/openSUSE:Factory/.python-ddt.new.19453/python-ddt.changes 2018-12-06 12:14:36.509694408 +0100 @@ -1,0 +2,5 @@ +Tue Dec 4 12:47:11 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +--- Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.gqISxV/_old 2018-12-06 12:14:37.193693673 +0100 +++ /var/tmp/diff_new_pack.gqISxV/_new 2018-12-06 12:14:37.197693668 +0100 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,7 +25,6 @@ Group: Development/Languages/Python Url:https://github.com/txels/ddt Source: https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros
commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2018-08-08 14:53:45 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new (New) Package is "python-ddt" Wed Aug 8 14:53:45 2018 rev:5 rq:627903 version:1.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2017-08-24 18:45:53.200437420 +0200 +++ /work/SRC/openSUSE:Factory/.python-ddt.new/python-ddt.changes 2018-08-08 14:54:44.229672602 +0200 @@ -1,0 +2,7 @@ +Tue Aug 7 14:48:44 UTC 2018 - toddrme2...@gmail.com + +- update to 1.2.0 + * Added individual test case docstring support and tests + * Add nested dict example to docs and cosmetic adjustments + +--- Old: ddt-1.1.1.tar.gz New: ddt-1.2.0.tar.gz Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.oQcONg/_old 2018-08-08 14:54:44.781673514 +0200 +++ /var/tmp/diff_new_pack.oQcONg/_new 2018-08-08 14:54:44.781673514 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-ddt # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,8 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-ddt -Version:1.1.1 +Version:1.2.0 Release:0 Summary:Data-Driven/Decorated Tests License:MIT @@ -28,12 +27,14 @@ Source: https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} # /SECTION +BuildArch: noarch %python_subpackages @@ -48,13 +49,14 @@ %install %{python_install} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%{python_exec setup.py test} +%python_exec setup.py test %files %{python_files} -%defattr(-,root,root,-) +%doc CONTRIBUTING.md README.md +%license LICENSE.md %{python_sitelib}/* -%doc *.md %changelog ++ ddt-1.1.1.tar.gz -> ddt-1.2.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.1.1/2.0.md new/ddt-1.2.0/2.0.md --- old/ddt-1.1.1/2.0.md2016-08-03 23:43:45.0 +0200 +++ new/ddt-1.2.0/2.0.md1970-01-01 01:00:00.0 +0100 @@ -1,42 +0,0 @@ -Hi all, thanks for using the library, your contributions, and especially for not bitching about me not being very responsive. - -I have been giving the future of `ddt` some thought over the past weeks. - -To give some background about how `ddt` came to be: I was looking for something that gave to unit tests a similar power as to what one could do with nosetests generators (which only worked for nose function-based tests): the ability to run a test case multiple times with different data. At that time I was beginning to learn me some more advanced Python (I had only been using the language for a few months) and was exploring the various mechanisms for metaprogramming available in the language. I was fascinated that one could add methods to a class at runtime, and I wrote this then tiny library that did that. - -Over time I've been taking some people's contributions, some of which grew the feature set into areas I hadn't even considered (like reading data from files) - but in honesty, that tiny initial feature has been enough for me and is about the only one I've actually personally used from the library. - -This has unfortunately meant that I've not always been paying as much attention as I should have to backwards compatibility of certain features (which made some people not particularly happy) or simplifying extensibility in general. - -Back from that digression, I've often thought that I wanted `ddt` to go back to its simpler origins, but still be easily applicable to other people's more complex use cases. One of the design decisions I've come to regret the most about `ddt` has been using `*args` as the mechanism to pass test data to the test methods, because that limits the potential for the API to grow quite a bit. - -My current thinking of what the new ddt should look like is: - -- keep the class decorator `ddt` -- a single method decorator that takes test data as an iterable
commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2017-08-24 18:45:02 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new (New) Package is "python-ddt" Thu Aug 24 18:45:02 2017 rev:4 rq:514463 version:1.1.1 Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2016-09-01 14:03:45.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-ddt.new/python-ddt.changes 2017-08-24 18:45:53.200437420 +0200 @@ -1,0 +2,9 @@ +Wed Aug 2 10:16:07 UTC 2017 - sebix+novell@sebix.at + +- update to 1.1.1 + * Add `@idata(iterable)` decorator-function. (#40) + * Set __wrapped__ for Python 2 (#45) + * Include more files in generated tarballs (#43) +- convert to singlespec + +--- Old: ddt-1.1.0.tar.gz New: ddt-1.1.1.tar.gz Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.5pp83Z/_old 2017-08-24 18:45:54.040319163 +0200 +++ /var/tmp/diff_new_pack.5pp83Z/_new 2017-08-24 18:45:54.064315784 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-ddt # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,40 +16,45 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-ddt -Version:1.1.0 +Version:1.1.1 Release:0 Summary:Data-Driven/Decorated Tests License:MIT Group: Development/Languages/Python Url:https://github.com/txels/ddt -Source: https://pypi.io/packages/source/d/ddt/ddt-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch -%endif +Source: https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module nose} +# /SECTION + +%python_subpackages %description -A library to multiply test cases +A library to multiply test cases. %prep %setup -q -n ddt-%{version} %build -python setup.py build +%{python_build} %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%{python_install} %check -python setup.py test +%{python_exec setup.py test} -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/* +%doc *.md %changelog ++ ddt-1.1.0.tar.gz -> ddt-1.1.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.1.0/2.0.md new/ddt-1.1.1/2.0.md --- old/ddt-1.1.0/2.0.md1970-01-01 01:00:00.0 +0100 +++ new/ddt-1.1.1/2.0.md2016-08-03 23:43:45.0 +0200 @@ -0,0 +1,42 @@ +Hi all, thanks for using the library, your contributions, and especially for not bitching about me not being very responsive. + +I have been giving the future of `ddt` some thought over the past weeks. + +To give some background about how `ddt` came to be: I was looking for something that gave to unit tests a similar power as to what one could do with nosetests generators (which only worked for nose function-based tests): the ability to run a test case multiple times with different data. At that time I was beginning to learn me some more advanced Python (I had only been using the language for a few months) and was exploring the various mechanisms for metaprogramming available in the language. I was fascinated that one could add methods to a class at runtime, and I wrote this then tiny library that did that. + +Over time I've been taking some people's contributions, some of which grew the feature set into areas I hadn't even considered (like reading data from files) - but in honesty, that tiny initial feature has been enough for me and is about the only one I've actually personally used from the library. + +This has unfortunately meant that I've not always been paying as much attention as I should have to backwards compatibility of certain features (which made some people not particularly hap
commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2016-09-01 14:03:43 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new (New) Package is "python-ddt" Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2015-12-23 09:57:30.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-ddt.new/python-ddt.changes 2016-09-01 14:03:45.0 +0200 @@ -1,0 +2,29 @@ +Thu Sep 1 05:23:40 UTC 2016 - tbecht...@suse.com + +update to version 1.1.0 + * Note explicit support for Python 3.5 + * Catch ImportErrors and improve coverage metrics + * Document the YAML support + * Refactor error functions in process_file_data + * Bump version to 1.1.0 + * Add basic support for YAML data files + * Bump version to 1.0.2 + * Bump version number + * Properly handle file object + * Fix the no-YAML installed test + * Fix Flake8 warnings + * Add more tests for YAML data files + * Split process_file_data into 2 functions + * Remove broken badge 'caniusepython3' + * Variable naming changes + * Flake8: make lambda into 'def' function + * Unconditionally use PyPI mock + * Fix copy-paste error + * Fix unittest with object instance as data + * Add mock to test requirements + * Add PyYAML as a test dependency + * RTD build trigger to use project name + * Load the YAML data safely +- Use pypi.io as Source url + +--- Old: ddt-1.0.1.tar.gz New: ddt-1.1.0.tar.gz Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.8QycSv/_old 2016-09-01 14:03:46.0 +0200 +++ /var/tmp/diff_new_pack.8QycSv/_new 2016-09-01 14:03:46.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-ddt # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,13 @@ Name: python-ddt -Version:1.0.1 +Version:1.1.0 Release:0 Summary:Data-Driven/Decorated Tests License:MIT Group: Development/Languages/Python Url:https://github.com/txels/ddt -Source: https://pypi.python.org/packages/source/d/ddt/ddt-%{version}.tar.gz +Source: https://pypi.io/packages/source/d/ddt/ddt-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build ++ ddt-1.0.1.tar.gz -> ddt-1.1.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.0.1/PKG-INFO new/ddt-1.1.0/PKG-INFO --- old/ddt-1.0.1/PKG-INFO 2015-11-18 23:09:54.0 +0100 +++ new/ddt-1.1.0/PKG-INFO 2016-05-31 09:27:22.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.0.1 +Version: 1.1.0 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/txels/ddt Author: Carles Barrobés @@ -18,4 +18,5 @@ Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 Classifier: Topic :: Software Development :: Testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.0.1/ddt.egg-info/PKG-INFO new/ddt-1.1.0/ddt.egg-info/PKG-INFO --- old/ddt-1.0.1/ddt.egg-info/PKG-INFO 2015-11-18 23:09:54.0 +0100 +++ new/ddt-1.1.0/ddt.egg-info/PKG-INFO 2016-05-31 09:27:21.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.0.1 +Version: 1.1.0 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/txels/ddt Author: Carles Barrobés @@ -18,4 +18,5 @@ Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 Classifier: Topic :: Software Development :: Testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.0.1/ddt.py new/ddt-1.1.0/ddt.py --- old/ddt-1.0.1/ddt.py2015-11-18 23:09:00.0 +0100 +++ new/ddt-1.1.0/ddt.py2016-05-31 09:26:35.0 +0200 @@ -11,7 +11,14 @@ import re from functools import wraps -__version__ = '1.0.1' +try: +import yaml +except ImportError: # pragma: no cover +_have_yaml = False +else: +_have_yaml = True + +__version__ = '1.1.0' # These attribut
commit python-ddt for openSUSE:Factory
Hello community, here is the log from the commit of package python-ddt for openSUSE:Factory checked in at 2015-12-23 09:57:28 Comparing /work/SRC/openSUSE:Factory/python-ddt (Old) and /work/SRC/openSUSE:Factory/.python-ddt.new (New) Package is "python-ddt" Changes: --- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes2015-06-11 08:21:53.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-ddt.new/python-ddt.changes 2015-12-23 09:57:30.0 +0100 @@ -1,0 +2,7 @@ +Tue Dec 15 21:55:39 UTC 2015 - dmuel...@suse.com + +- update to 1.0.1: + * specify minimum version of six + * Fix different test names with different runs + +--- @@ -66 +72,0 @@ - Old: ddt-1.0.0.tar.gz New: ddt-1.0.1.tar.gz Other differences: -- ++ python-ddt.spec ++ --- /var/tmp/diff_new_pack.3VI1ap/_old 2015-12-23 09:57:31.0 +0100 +++ /var/tmp/diff_new_pack.3VI1ap/_new 2015-12-23 09:57:31.0 +0100 @@ -17,7 +17,7 @@ Name: python-ddt -Version:1.0.0 +Version:1.0.1 Release:0 Summary:Data-Driven/Decorated Tests License:MIT ++ ddt-1.0.0.tar.gz -> ddt-1.0.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.0.0/PKG-INFO new/ddt-1.0.1/PKG-INFO --- old/ddt-1.0.0/PKG-INFO 2015-01-27 19:41:48.0 +0100 +++ new/ddt-1.0.1/PKG-INFO 2015-11-18 23:09:54.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.0.0 +Version: 1.0.1 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/txels/ddt Author: Carles Barrobés diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.0.0/ddt.egg-info/PKG-INFO new/ddt-1.0.1/ddt.egg-info/PKG-INFO --- old/ddt-1.0.0/ddt.egg-info/PKG-INFO 2015-01-27 19:41:47.0 +0100 +++ new/ddt-1.0.1/ddt.egg-info/PKG-INFO 2015-11-18 23:09:54.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ddt -Version: 1.0.0 +Version: 1.0.1 Summary: Data-Driven/Decorated Tests Home-page: https://github.com/txels/ddt Author: Carles Barrobés diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ddt-1.0.0/ddt.py new/ddt-1.0.1/ddt.py --- old/ddt-1.0.0/ddt.py2015-01-27 19:40:45.0 +0100 +++ new/ddt-1.0.1/ddt.py2015-11-18 23:09:00.0 +0100 @@ -9,10 +9,9 @@ import json import os import re -import sys from functools import wraps -__version__ = '1.0.0' +__version__ = '1.0.1' # These attributes will not conflict with any real python attribute # They are added to the decorated test method and processed later @@ -23,6 +22,20 @@ UNPACK_ATTR = '%unpack'# remember that we have to unpack values +try: +trivial_types = (type(None), bool, int, float, basestring) +except NameError: +trivial_types = (type(None), bool, int, float, str) + + +def is_trivial(value): +if isinstance(value, trivial_types): +return True +elif isinstance(value, (list, tuple)): +return all(map(is_trivial, value)) +return False + + def unpack(func): """ Method decorator to add unpack feature. @@ -70,14 +83,6 @@ return wrapper -def is_hash_randomized(): -return (((sys.hexversion >= 0x02070300 and - sys.hexversion < 0x0300) or - (sys.hexversion >= 0x03020300)) and -sys.flags.hash_randomization and -'PYTHONHASHSEED' not in os.environ) - - def mk_test_name(name, value, index=0): """ Generate a new name for a test case. @@ -86,47 +91,18 @@ string representation of the value, and convert the result into a valid python identifier by replacing extraneous characters with ``_``. -If hash randomization is enabled (a feature available since 2.7.3/3.2.3 -and enabled by default since 3.3) and a "non-trivial" value is passed -this will omit the name argument by default. Set `PYTHONHASHSEED` -to a fixed value before running tests in these cases to get the -names back consistently or use the `__name__` attribute on data values. +We avoid doing str(value) if dealing with non-trivial values. +The problem is possible different names with different runs, e.g. +different order of dictionary keys (see PYTHONHASHSEED) or dealing +with mock objects. +Trivial scalar values are passed as is. A "trivial" value is a plain scalar, or a tuple or list consisting only of trivial values. - """ -# We avoid doing str(value) if all of the following hold: -# -# * Python version is 2.7.3 or newer (for 2 series) or 3.2.3 or -# ne