summaryrefslogtreecommitdiff
path: root/tests/test_module.py
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2020-11-17 21:37:42 +0200
committerHugo van Kemenade <hugovk@users.noreply.github.com>2020-11-17 22:22:11 +0200
commit7babeccbececd9dd02642dfd193a3c3a0fc0dbe7 (patch)
treefe83142e2763e9d922edbb97b16db6f46bb84a52 /tests/test_module.py
parent6c48b63ae4a70da6dbbc5b6eef20806d7f505950 (diff)
downloadpsycopg2-7babeccbececd9dd02642dfd193a3c3a0fc0dbe7.tar.gz
Upgrade Python syntax with pyupgrade --py36-plus
Diffstat (limited to 'tests/test_module.py')
-rwxr-xr-xtests/test_module.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_module.py b/tests/test_module.py
index 78f4e43..dc96e23 100755
--- a/tests/test_module.py
+++ b/tests/test_module.py
@@ -329,10 +329,10 @@ class TestExtensionModule(unittest.TestCase):
self.assert_(pardir in sys.path)
script = ("""
import sys
-sys.path.remove(%r)
-sys.path.insert(0, %r)
+sys.path.remove({!r})
+sys.path.insert(0, {!r})
import _psycopg
-""" % (pardir, pkgdir))
+""".format(pardir, pkgdir))
proc = Popen([sys.executable, '-c', script])
proc.communicate()