Yesung(Isaac) Lee
54289f85b2
gh-99688: Fix outdated tests in test_unary ( #99712 )
...
* Remove duplicates from "L" suffix removal
* test_invert now tests `~`.
2022-12-11 18:44:29 -05:00
Zachary Ware
38c707e7e0
Issue #21741 : Update 147 test modules to use test discovery.
...
I have compared output between pre- and post-patch runs of these tests
to make sure there's nothing missing and nothing broken, on both
Windows and Linux. The only differences I found were actually tests
that were previously *not* run.
2015-04-13 15:00:43 -05:00
Benjamin Peterson
c9c0f201fe
convert old fail* assertions to assert*
2009-06-30 23:06:06 +00:00
Benjamin Peterson
ee8712cda4
#2621 rename test.test_support to test.support
2008-05-20 21:35:26 +00:00
Guido van Rossum
e61fd5b5ed
Patch by Christian Heimes to change self.assert_(x == y) into
...
self.assertEqual(x, y). (Christian used self.failUnlessEqual(),
but the double negative makes it hard to grok, so I changed it.)
2007-07-11 12:20:59 +00:00
Walter Dörwald
1f5947b30a
Remove have_unicode checks and merge those tests into the
...
normal code (or drop them if they only repeat previous
tests).
2007-05-22 16:52:54 +00:00
Walter Dörwald
4e618b7518
Fix test: u prefixes are gone now. Test 'a' and b'a' instead.
2007-05-18 16:50:52 +00:00
Guido van Rossum
e2a383d062
Rip out 'long' and 'L'-suffixed integer literals.
...
(Rough first cut.)
2007-01-15 16:59:06 +00:00
Barry Warsaw
04f357cffe
Get rid of relative imports in all unittests. Now anything that
...
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".
This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).
Now Tim and Jack can have at it. :)
2002-07-23 19:04:11 +00:00
Michael W. Hudson
9c373061ad
tolerate --disable-unicode...
2002-05-20 14:24:53 +00:00
Fred Drake
2e2be3760c
Change the PyUnit-based tests to use the test_main() approach. This
...
allows using the tests with unittest.py as a script. The tests will
still run when run as a script themselves.
2001-09-20 21:33:42 +00:00
Fred Drake
702ca4ffcb
Revert the previous patch to test_pow.py and move the test to test_unary.py
...
based on a suggestion from Tim Peters; also make sure that we're really
doing exponentiation and not multiplication.
2001-08-30 19:15:20 +00:00
Tim Peters
c15a82813a
Change test_overflow to test_no_overflow; looks like big int literals
...
are auto-coerced to longs now, but this test still expected OverflowError.
I can't imagine this test failure was unique to Windows.
2001-08-27 21:45:32 +00:00
Jeremy Hylton
08a6403973
Test the unary operator changes to the compiler
2001-08-12 02:22:27 +00:00