mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
Make test_cmdline_args.py work with older pythons
I was using the assertIn() function on unit tests, which Python 2.7 introduced. But we'd like to be able to run our unit tests on Pythons from older operating systems.
This commit is contained in:
parent
b7a17de454
commit
338bcad9e4
@ -163,9 +163,9 @@ class CmdlineTests(unittest.TestCase):
|
||||
|
||||
out_fl = lines(out_fl)
|
||||
self.assert_(len(out_fl) > 100)
|
||||
self.assertIn("SocksPort 9999", out_fl)
|
||||
self.assertIn("SafeLogging 0", out_fl)
|
||||
self.assertIn("ClientOnly 0", out_fl)
|
||||
self.assert_("SocksPort 9999" in out_fl)
|
||||
self.assert_("SafeLogging 0" in out_fl)
|
||||
self.assert_("ClientOnly 0" in out_fl)
|
||||
|
||||
self.assert_(out_verif.endswith("Configuration was valid\n"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user