summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-09-25 11:01:41 -0400
committerBenjamin Peterson <benjamin@python.org>2012-09-25 11:01:41 -0400
commitd388c4e02f824808c7d9d46d95fac4497fdd89b2 (patch)
tree826223507a1abeae90ab57fff2cd479ab779fd9a
parent1dedd0a4a4b88eeabb95af4b372a447b4d41b223 (diff)
downloadcpython-git-d388c4e02f824808c7d9d46d95fac4497fdd89b2.tar.gz
use modern conditional syntax
-rw-r--r--Lib/test/test_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index cfed142845..0f8f1f584f 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -575,7 +575,7 @@ class PycacheTests(unittest.TestCase):
self.assertTrue(os.path.exists('__pycache__'))
self.assertTrue(os.path.exists(os.path.join(
'__pycache__', '{}.{}.py{}'.format(
- TESTFN, self.tag, __debug__ and 'c' or 'o'))))
+ TESTFN, self.tag, 'c' if __debug__ else 'o'))))
@unittest.skipUnless(os.name == 'posix',
"test meaningful only on posix systems")