aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-07 01:00:02 +0100
committerSam James <sam@gentoo.org>2023-08-07 01:04:33 +0100
commit2663dc95115dce81af142936565109b366a342af (patch)
tree0cfcbbe0332457adea4151d0ad2085858472fb6e /tests
parentCI: add basic pytest workflow (diff)
downloadmirrorselect-2663dc95115dce81af142936565109b366a342af.tar.gz
mirrorselect-2663dc95115dce81af142936565109b366a342af.tar.bz2
mirrorselect-2663dc95115dce81af142936565109b366a342af.zip
Run `pyupgrade`
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_write_make_conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_write_make_conf.py b/tests/test_write_make_conf.py
index 5d13bf5..100c5ed 100644
--- a/tests/test_write_make_conf.py
+++ b/tests/test_write_make_conf.py
@@ -19,10 +19,10 @@ class WriteMakeConfTestCase(unittest.TestCase):
#print("*****expect*****\n", expected_result, "***********")
try:
config_path = os.path.join(tempdir, 'make.conf')
- with open(config_path, 'wt') as f:
+ with open(config_path, 'w') as f:
f.write(make_conf)
write_make_conf(Output(out=status_output), config_path, var, mirror_string)
- with open(config_path, 'rt') as f:
+ with open(config_path) as f:
result = f.read()
#print("!!!result!!!\n", result, "!!!!!!!!!!\n")
self.assertEqual(result, "{}".format(expected_result).format(mirror_string))