Kale Kundert
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								dd3709718d 
								
							 
						 
						
							
							
								
								Merge pull request  #8453  from encukou/rel-error-message  
							
							 
							
							... 
							
							
							
							Fix value in error message about negative relative tolerance 
							
						 
						
							2021-03-16 16:43:31 -04:00  
						
					 
				
					
						
							
							
								 
								pre-commit-ci[bot]
							
						 
						
							 
							
							
							
							
								
							
							
								da4abd1c82 
								
							 
						 
						
							
							
								
								[pre-commit.ci] auto fixes from pre-commit.com hooks  
							
							 
							
							... 
							
							
							
							for more information, see https://pre-commit.ci  
							
						 
						
							2021-03-16 19:10:55 +00:00  
						
					 
				
					
						
							
							
								 
								Petr Viktorin
							
						 
						
							 
							
							
							
							
								
							
							
								43b451e95e 
								
							 
						 
						
							
							
								
								Add tests for the error message  
							
							 
							
							
							
						 
						
							2021-03-16 20:09:17 +01:00  
						
					 
				
					
						
							
							
								 
								Pierre Mourlanne
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								af9f27a874 
								
							 
						 
						
							
							
								
								Approx decimal sequence mapping ( #8422 )  
							
							 
							
							
							
						 
						
							2021-03-13 16:01:23 +02:00  
						
					 
				
					
						
							
							
								 
								pre-commit-ci[bot]
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								ee03e31831 
								
							 
						 
						
							
							
								
								[pre-commit.ci] pre-commit autoupdate ( #8201 )  
							
							 
							
							... 
							
							
							
							* [pre-commit.ci] pre-commit autoupdate
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci 
* manual fixes after configuration update
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci 
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anthony Sottile <asottile@umich.edu> 
							
						 
						
							2020-12-30 11:56:09 +02:00  
						
					 
				
					
						
							
							
								 
								Jakob van Santen
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								9ccbf5b899 
								
							 
						 
						
							
							
								
								python_api: handle array-like args in approx() ( #8137 )  
							
							 
							
							
							
						 
						
							2020-12-15 08:49:29 -03:00  
						
					 
				
					
						
							
							
								 
								Anton
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								810b878ef8 
								
							 
						 
						
							
							
								
								Migrate to pytester: test_capture.py, test_terminal.py, approx.py ( #8108 )  
							
							 
							
							... 
							
							
							
							* Migrate to pytester: test_capture.py, test_config.py, approx.py
* migrate test_terminal.py
* revert test_config.py
* more typing in test_terminal.py
* try-out 'tr' fixture update
* revert 'tr' fixture, update test_config.py 
							
						 
						
							2020-12-08 22:20:02 +02:00  
						
					 
				
					
						
							
							
								 
								Anthony Sottile
							
						 
						
							 
							
							
							
							
								
							
							
								66bd44c13a 
								
							 
						 
						
							
							
								
								py36+: pyupgrade: py36+  
							
							 
							
							
							
						 
						
							2020-10-03 12:46:54 -07:00  
						
					 
				
					
						
							
							
								 
								Jakob van Santen
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								91fa11bed0 
								
							 
						 
						
							
							
								
								python_api: let approx() take nonnumeric values ( #7710 )  
							
							 
							
							... 
							
							
							
							Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com> 
							
						 
						
							2020-09-28 12:17:23 -03:00  
						
					 
				
					
						
							
							
								 
								Ran Benita
							
						 
						
							 
							
							
							
							
								
							
							
								b8471aa527 
								
							 
						 
						
							
							
								
								testing: fix some docstring issues  
							
							 
							
							... 
							
							
							
							In preparation for enforcing some docstring lints. 
							
						 
						
							2020-08-03 10:10:43 +03:00  
						
					 
				
					
						
							
							
								 
								Ran Benita
							
						 
						
							 
							
							
							
							
								
							
							
								8f8f472379 
								
							 
						 
						
							
							
								
								python_api: type annotate some parts of pytest.approx()  
							
							 
							
							
							
						 
						
							2020-06-25 15:15:24 +03:00  
						
					 
				
					
						
							
							
								 
								Ran Benita
							
						 
						
							 
							
							
							
							
								
							
							
								54ad048be7 
								
							 
						 
						
							
							
								
								Enable check_untyped_defs mypy option for testing/ too  
							
							 
							
							
							
						 
						
							2020-06-05 11:34:20 +03:00  
						
					 
				
					
						
							
							
								 
								Daniel Hahler
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								83137c89e9 
								
							 
						 
						
							
							
								
								tests: test_unicode_plus_minus: use unicode sign directly ( #6727 )  
							
							 
							
							... 
							
							
							
							Was globbed for Python 2 before (57c448991 ). 
							
						 
						
							2020-02-14 02:16:25 +01:00  
						
					 
				
					
						
							
							
								 
								Daniel Hahler
							
						 
						
							 
							
							
							
							
								
							
							
								a5bd19e3b4 
								
							 
						 
						
							
							
								
								tests: lazily import doctest in approx tests  
							
							 
							
							
							
						 
						
							2019-10-28 12:55:16 +01:00  
						
					 
				
					
						
							
							
								 
								Daniel Hahler
							
						 
						
							 
							
							
							
							
								
							
							
								32412532ef 
								
							 
						 
						
							
							
								
								tests: mock doctest.DocTestRunner to not use real pdb  
							
							 
							
							... 
							
							
							
							It is not used there anyway, and might cause false positives. 
							
						 
						
							2019-10-28 12:55:16 +01:00  
						
					 
				
					
						
							
							
								 
								AnjoMan
							
						 
						
							 
							
							
							
							
								
							
							
								34a02121ad 
								
							 
						 
						
							
							
								
								Drop python 2 unicode tests for approx repr  
							
							 
							
							
							
						 
						
							2019-10-24 23:44:13 -04:00  
						
					 
				
					
						
							
							
								 
								AnjoMan
							
						 
						
							 
							
							
							
							
								
							
							
								ed9fda84d3 
								
							 
						 
						
							
							
								
								Add tolerance to complex numbers  
							
							 
							
							
							
						 
						
							2019-10-24 23:44:13 -04:00  
						
					 
				
					
						
							
							
								 
								Anthony Sottile
							
						 
						
							 
							
							
							
							
								
							
							
								a91fe1fedd 
								
							 
						 
						
							
							
								
								pre-commit run pyupgrade --all-files  
							
							 
							
							
							
						 
						
							2019-06-03 12:08:02 -03:00  
						
					 
				
					
						
							
							
								 
								Anthony Sottile
							
						 
						
							 
							
							
							
							
								
							
							
								5034399d7a 
								
							 
						 
						
							
							
								
								pre-commit run fix-encoding-pragma --all-files  
							
							 
							
							
							
						 
						
							2019-06-03 12:08:01 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								4d49ba6529 
								
							 
						 
						
							
							
								
								Drop Python 2.7 and 3.4 support  
							
							 
							
							... 
							
							
							
							* Update setup.py requires and classifiers
* Drop Python 2.7 and 3.4 from CI
* Update docs dropping 2.7 and 3.4 support
* Fix mock imports and remove tests related to pypi's mock module
* Add py27 and 34 support docs to the sidebar
* Remove usage of six from tmpdir
* Remove six.PY* code blocks
* Remove sys.version_info related code
* Cleanup compat
* Remove obsolete safe_str
* Remove obsolete __unicode__ methods
* Remove compat.PY35 and compat.PY36: not really needed anymore
* Remove unused UNICODE_TYPES
* Remove Jython specific code
* Remove some Python 2 references from docs
Related to #5275  
							
						 
						
							2019-06-02 14:39:11 -03:00  
						
					 
				
					
						
							
							
								 
								Anthony Sottile
							
						 
						
							 
							
							
							
							
								
							
							
								dc75b6af47 
								
							 
						 
						
							
							
								
								Use fix-encoding-pragma pre-commit hook  
							
							 
							
							
							
						 
						
							2019-05-14 15:56:31 -07:00  
						
					 
				
					
						
							
							
								 
								Nicholas Devenish
							
						 
						
							 
							
							
							
							
								
							
							
								4eddf634e7 
								
							 
						 
						
							
							
								
								Rename and split out the testing, and reword the changelog.  
							
							 
							
							
							
						 
						
							2018-11-18 20:01:11 +00:00  
						
					 
				
					
						
							
							
								 
								Nicholas Devenish
							
						 
						
							 
							
							
							
							
								
							
							
								1a8d9bf254 
								
							 
						 
						
							
							
								
								Let approx() work on more generic sequences  
							
							 
							
							... 
							
							
							
							approx() was updated in 9f3122fe  to work better with numpy arrays,
however at the same time the requirements were tightened from
requiring an Iterable to requiring a Sequence - the former being
tested only on interface, while the latter requires subclassing or
registration with the abc.
Since the ApproxSequence only used __iter__ and __len__ this commit
reduces the requirement to only what's used, and allows unregistered
Sequence-like containers to be used.
Since numpy arrays qualify for the new criteria, reorder the checks so
that generic sequences are checked for after numpy arrays. 
							
						 
						
							2018-11-18 20:01:11 +00:00  
						
					 
				
					
						
							
							
								 
								Anthony Sottile
							
						 
						
							 
							
							
							
							
								
							
							
								2368fbb63c 
								
							 
						 
						
							
							
								
								Apply reorder-python-imports to all files  
							
							 
							
							
							
						 
						
							2018-10-25 00:01:29 -07:00  
						
					 
				
					
						
							
							
								 
								Anthony Sottile
							
						 
						
							 
							
							
							
							
								
							
							
								1caf6d5907 
								
							 
						 
						
							
							
								
								Upgrade pre-commit hooks  
							
							 
							
							
							
						 
						
							2018-10-08 10:10:46 -07:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								43664d7841 
								
							 
						 
						
							
							
								
								Use ids for parametrized values in test_expected_value_type_error  
							
							 
							
							
							
						 
						
							2018-08-01 07:34:08 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								6e32a1f73d 
								
							 
						 
						
							
							
								
								Use parametrize in repr test for nd arrays  
							
							 
							
							
							
						 
						
							2018-08-01 07:04:25 -03:00  
						
					 
				
					
						
							
							
								 
								Kale Kundert
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								032db159c9 
								
							 
						 
						
							
							
								
								Let black reformat the code...  
							
							 
							
							
							
						 
						
							2018-07-31 11:23:23 -07:00  
						
					 
				
					
						
							
							
								 
								Kale Kundert
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								cd2085ee71 
								
							 
						 
						
							
							
								
								approx(): Detect type errors earlier.  
							
							 
							
							
							
						 
						
							2018-07-31 00:26:35 -07:00  
						
					 
				
					
						
							
							
								 
								Kale Kundert
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								7d8688d54b 
								
							 
						 
						
							
							
								
								Reflect dimension in approx repr for numpy arrays.  
							
							 
							
							
							
						 
						
							2018-07-30 23:23:17 -07:00  
						
					 
				
					
						
							
							
								 
								abrammer
							
						 
						
							 
							
							
							
							
								
							
							
								535fd1f311 
								
							 
						 
						
							
							
								
								may as well include inf test while we're at it  
							
							 
							
							
							
						 
						
							2018-07-29 23:12:04 -04:00  
						
					 
				
					
						
							
							
								 
								abrammer
							
						 
						
							 
							
							
							
							
								
							
							
								330640eb96 
								
							 
						 
						
							
							
								
								update tests to check tolerance args and expecing nan in numpy arrays  
							
							 
							
							
							
						 
						
							2018-07-29 22:47:38 -04:00  
						
					 
				
					
						
							
							
								 
								abrammer
							
						 
						
							 
							
							
							
							
								
							
							
								f0db64ac2e 
								
							 
						 
						
							
							
								
								drop the duplicate approx call  
							
							 
							
							... 
							
							
							
							update test to include both np.array(actual) and np.array(expected) 
							
						 
						
							2018-07-24 21:18:44 -04:00  
						
					 
				
					
						
							
							
								 
								abrammer
							
						 
						
							 
							
							
							
							
								
							
							
								514ca6f4ad 
								
							 
						 
						
							
							
								
								add test wrt  #3695  checking numpy array tolerance args  
							
							 
							
							
							
						 
						
							2018-07-23 23:40:06 -04:00  
						
					 
				
					
						
							
							
								 
								Anthony Sottile
							
						 
						
							 
							
							
							
							
								
							
							
								cbaa7dd56a 
								
							 
						 
						
							
							
								
								Upgrade pre-commit hooks except pyupgrade  
							
							 
							
							
							
						 
						
							2018-06-26 06:35:27 -07:00  
						
					 
				
					
						
							
							
								 
								Marcelo Duarte Trevisani
							
						 
						
							 
							
							
							
							
								
							
							
								0030ceb11c 
								
							 
						 
						
							
							
								
								Bug  fix   #3593  - approx method in a single element of numpy array  
							
							 
							
							... 
							
							
							
							If the user pass as a expected value a numpy array created like
numpy.array(5); it will creates an array with one element without shape,
when used with approx it will raise an error
'TypeError: iteration over a 0-d array' 
							
						 
						
							2018-06-25 22:55:16 +02:00  
						
					 
				
					
						
							
							
								 
								Ronny Pfannschmidt
							
						 
						
							 
							
							
							
							
								
							
							
								703e4b11ba 
								
							 
						 
						
							
							
								
								run black  
							
							 
							
							
							
						 
						
							2018-05-23 16:48:46 +02:00  
						
					 
				
					
						
							
							
								 
								Ronny Pfannschmidt
							
						 
						
							 
							
							
							
							
								
							
							
								9aacb4635e 
								
							 
						 
						
							
							
								
								run pyupgrade  
							
							 
							
							
							
						 
						
							2018-05-23 16:45:09 +02:00  
						
					 
				
					
						
							
							
								 
								Tadeu Manoel
							
						 
						
							 
							
							
							
							
								
							
							
								161d4e5fe4 
								
							 
						 
						
							
							
								
								Add support for pytest.approx comparisons between scalar and array (inverted order)  
							
							 
							
							
							
						 
						
							2018-03-14 16:29:04 -03:00  
						
					 
				
					
						
							
							
								 
								Tadeu Manoel
							
						 
						
							 
							
							
							
							
								
							
							
								c34dde7a3f 
								
							 
						 
						
							
							
								
								Add support for pytest.approx comparisons between array and scalar  
							
							 
							
							
							
						 
						
							2018-03-14 15:47:21 -03:00  
						
					 
				
					
						
							
							
								 
								mike
							
						 
						
							 
							
							
							
							
								
							
							
								6e14585ca2 
								
							 
						 
						
							
							
								
								Fix approx default tolerances for Decimal  
							
							 
							
							
							
						 
						
							2018-02-21 23:08:23 +01:00  
						
					 
				
					
						
							
							
								 
								hugovk
							
						 
						
							 
							
							
							
							
								
							
							
								ef732fc51d 
								
							 
						 
						
							
							
								
								Remove code for unsupported Python versions  
							
							 
							
							
							
						 
						
							2017-10-10 08:54:56 +03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								80f4699572 
								
							 
						 
						
							
							
								
								approx raises TypeError in Python 2 for comparison operators other than != and ==  
							
							 
							
							
							
						 
						
							2017-07-25 20:07:10 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								24da938321 
								
							 
						 
						
							
							
								
								Fix additional flake8 errors  
							
							 
							
							
							
						 
						
							2017-07-19 17:42:21 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								7b1870a94e 
								
							 
						 
						
							
							
								
								Fix flake8 in features branch  
							
							 
							
							
							
						 
						
							2017-07-17 21:16:14 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								4fd92ef9ba 
								
							 
						 
						
							
							
								
								Merge branch 'fix-flake8-issues' into features  
							
							 
							
							
							
						 
						
							2017-07-17 21:05:39 -03:00  
						
					 
				
					
						
							
							
								 
								Andras Tim
							
						 
						
							 
							
							
							
							
								
							
							
								7d2ceb7872 
								
							 
						 
						
							
							
								
								Fixed E501 flake8 errors  
							
							 
							
							... 
							
							
							
							line too long (> 120 characters) 
							
						 
						
							2017-07-17 01:44:23 +02:00  
						
					 
				
					
						
							
							
								 
								Andras Tim
							
						 
						
							 
							
							
							
							
								
							
							
								617e510b6e 
								
							 
						 
						
							
							
								
								Fixed E231 flake8 errors  
							
							 
							
							... 
							
							
							
							missing whitespace after ‘,’, ‘;’, or ‘:’ 
							
						 
						
							2017-07-17 01:44:22 +02:00  
						
					 
				
					
						
							
							
								 
								Andras Tim
							
						 
						
							 
							
							
							
							
								
							
							
								1ff54ba205 
								
							 
						 
						
							
							
								
								Fixed E201 flake8 errors  
							
							 
							
							... 
							
							
							
							whitespace after ‘(‘ 
							
						 
						
							2017-07-17 01:28:17 +02:00  
						
					 
				
					
						
							
							
								 
								Andras Tim
							
						 
						
							 
							
							
							
							
								
							
							
								df54bf0db5 
								
							 
						 
						
							
							
								
								Fixed E131 flake8 errors  
							
							 
							
							... 
							
							
							
							continuation line unaligned for hanging indent 
							
						 
						
							2017-07-17 01:28:16 +02:00