Closed
Description
Issue Summary
Even the syntax highlighting here on GitHub (in red) shows this to be invalid syntax. Simply changing ||
to or
should solve this problem. One other consideration could be to use self.assertTrue(...)
instead of self.assertEqual(True, ...)
for the other tests in this file.
smtpapi-python/test/test_project.py
Line 12 in 97cca34
smtpapi-python/test/test_project.py
Line 16 in 97cca34
smtpapi-python/test/test_project.py
Line 52 in 97cca34
Steps to Reproduce
$ python2
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.isdir("./Dockerfile") || os.path.isdir("./docker/Dockerfile")
File "<stdin>", line 1
os.path.isdir("./Dockerfile") || os.path.isdir("./docker/Dockerfile")
^
SyntaxError: invalid syntax
$ python
Python 3.7.1 (default, Oct 20 2018, 18:18:46)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> os.path.isdir("./Dockerfile") || os.path.isdir("./docker/Dockerfile")
File "<stdin>", line 1
os.path.isdir("./Dockerfile") || os.path.isdir("./docker/Dockerfile")
^
SyntaxError: invalid syntax