Skip to content

Commit 924e557

Browse files
committed
Fix broken test, add python versions to tox
1 parent ada4066 commit 924e557

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

launchd/launchctl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ def properties(self):
6464
if hasattr(self, '_nsproperties'):
6565
self._properties = convert_NSDictionary_to_dict(self._nsproperties)
6666
del self._nsproperties
67-
#self._nsproperties = None
67+
# self._nsproperties = None
6868
if self._properties is None:
6969
self.refresh()
7070
return self._properties
7171

7272
def exists(self):
73-
return ServiceManagement.SMJobCopyDictionary(None, self.label) != None
73+
return ServiceManagement.SMJobCopyDictionary(None, self.label) is not None
7474

7575
def refresh(self):
7676
val = ServiceManagement.SMJobCopyDictionary(None, self.label)

launchd/tests/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def testlaunchctl_list(self):
2828
def testlaunchctl_list_x(self):
2929
label = "com.apple.Finder"
3030
if six.PY2:
31-
stdout = cmd.launchctl("list", "-x", label)
31+
stdout = cmd.launchctl("list", label)
3232
else:
33-
stdout = cmd.launchctl("list", "-x", label).decode("utf-8")
33+
stdout = cmd.launchctl("list", label).decode("utf-8")
3434
self.assertTrue(isinstance(stdout, six.string_types))

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
Programming Language :: Python :: 3.2
2727
Programming Language :: Python :: 3.3
2828
Programming Language :: Python :: 3.4
29+
Programming Language :: Python :: 3.5
30+
Programming Language :: Python :: 3.6
31+
Programming Language :: Python :: 3.7
32+
Programming Language :: Python :: 3.8
2933
Programming Language :: Python :: Implementation :: CPython
3034
""".splitlines() if len(line) > 0]
3135

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tox (http://tox.testrun.org/)
22

33
[tox]
4-
envlist = py27, py32, py33, py34
4+
envlist = py27, py32, py33, py34, py35, py36, py37, py38
55

66
[testenv]
77
commands = {envpython} setup.py test

0 commit comments

Comments
 (0)