"test_augassign.py" appears at startup?
Equipment: Mac Pro (early 2008), 2x3.2 GHz Quad - Core Intel Xeon, 32 GB of RAM, OS X El Capitan 10.11.6
The original hard drive has shown signs of slow deterioration, I so bought a new hard drive Western Digital 1 TB for the replacement. I downloaded OS X 10.11.6 on the App store and, with the help of a program called 'DiskMaker X 5', I created a flash boot disk. I extracted the old hard drive and installed a new and restarted my Mac Pro workstation on boot flash drive. Using disk utility, I deleted the new hard drive using Mac OS extended (journaled) with the plan of Partition GUID - as noted by Apple Support page I read for instructions. Hard drive erased successfully. I then made a Time Machine restore and everything seems fine.
However, whenever my workstation Mac Pro, boots, loads of TextEdit, displaying a class titled, "test_augassign.py" with the content following:
# Test increased trust.
of test.test_support import run_unittest, check_py3k_warnings
Import UnitTest
class AugAssignTest (unittest. Unit test):
def testBasic (self):
x = 2
x += 1
x * = 2
x * = 2
x = 8
x / / = 5
x % = 3
x & = 2
x | = 5
x ^ = 1
x / = 2
If 1/2 == 0:
Classics division #.
self.assertEqual (x, 3)
Another thing:
# new style division (-RAPNOUV)
self.assertEqual (x, 3.0)
def test_with_unpacking (self):
self.assertRaises (SyntaxError, compilation, ' x, b += 3 ","< test >"," exec"")
def testInList (self):
x = [2]
x [0] += 1
x [0] * = 2
x [0] * = 2
x [0] = 8
x [0] / / = 5
x [0] % = 3
x [0] & = 2
x [0] | = 5
x [0] ^ = 1
x [0] / 2 =
If 1/2 == 0:
self.assertEqual (x [0], 3)
Another thing:
self.assertEqual (x [0], 3.0)
def testInDict (self):
x = {0: 2}
x [0] += 1
x [0] * = 2
x [0] * = 2
x [0] = 8
x [0] / / = 5
x [0] % = 3
x [0] & = 2
x [0] | = 5
x [0] ^ = 1
x [0] / 2 =
If 1/2 == 0:
self.assertEqual (x [0], 3)
Another thing:
self.assertEqual (x [0], 3.0)
def testSequences (self):
x = [1,2]
x += [3,4]
x * = 2
self.assertEqual (x, [1, 2, 3, 4, 1, 2, 3, 4])
x = [1, 2, 3]
y = x
x [1,2] * = 2
y [1,2] += [1]
self.assertEqual (x, [1, 2, 1, 2, 3])
self.assertTrue(x is y)
def testCustomMethods1 (self):
class aug_test:
def __init__ (self, value):
Self.Val = value
def __radd__ (self, val):
Return self.val + val
def __add__ (cottages, val):
Return aug_test (self.val + val)
class aug_test2 (aug_test):
__iadd__ (self, val) def:
Self.Val = val + self.val
Return to self
class aug_test3 (aug_test):
__iadd__ (self, val) def:
Return aug_test3 (self.val + val)
x = aug_test (1)
y = x
x += 10
self.assertIsInstance (x, aug_test)
self.assertTrue (there is no x)
self.assertEqual (x.val, 11)
x = aug_test2 (2)
y = x
x += 10
self.assertTrue(y is x)
self.assertEqual (x.val, 12)
x = aug_test3 (3)
y = x
x += 10
self.assertIsInstance (x, aug_test3)
self.assertTrue (there is no x)
self.assertEqual (x.val, 13)
def testCustomMethods2 (test_self):
output =]
testall class:
def __add__ (cottages, val):
output. Append ("called __add__")
def __radd__ (self, val):
output. Append ("called __radd__")
__iadd__ (self, val) def:
output. Append ("called __iadd__")
Return to self
def __sub__ (self, val):
output. Append ("called __sub__")
def __rsub__ (self, val):
output. Append ("called __rsub__")
def __isub__ (self, val):
output. Append ("called __isub__")
Return to self
def __mul__ (self, val):
output. Append ("called __mul__")
def __rmul__ (self, val):
output. Append ("called __rmul__")
def __imul__ (self, val):
output. Append ("called __imul__")
Return to self
def __div__ (self, val):
output. Append ("called __div__")
def __rdiv__ (self, val):
output. Append ("called __rdiv__")
def __idiv__ (self, val):
output. Append ("called __idiv__")
Return to self
def __floordiv__ (self, val):
output. Append ("called __floordiv__")
Return to self
def __ifloordiv__ (self, val):
output. Append ("called __ifloordiv__")
Return to self
def __rfloordiv__ (self, val):
output. Append ("called __rfloordiv__")
Return to self
def __truediv__ (self, val):
output. Append ("called __truediv__")
Return to self
def __itruediv__ (self, val):
output. Append ("called __itruediv__")
Return to self
def __mod__ (self, val):
output. Append ("called __mod__")
def __rmod__ (self, val):
output. Append ("called __rmod__")
def __imod__ (self, val):
output. Append ("called __imod__")
Return to self
def __pow__ (self, val):
output. Append ("called __pow__")
def __rpow__ (self, val):
output. Append ("called __rpow__")
def __ipow__ (self, val):
output. Append ("called __ipow__")
Return to self
def __or__ (self, val):
output. Append ("called __or__")
def __ror__ (self, val):
output. Append ("called __ror__")
def __ior__ (self, val):
output. Append ("called __ior__")
Return to self
def __and__ (self, val):
output. Append ("called __and__")
def __rand__ (self, val):
output. Append ("called __rand__")
def __iand__ (self, val):
output. Append ("called __iand__")
Return to self
def __xor__ (self, val):
output. Append ("called __xor__")
def __rxor__ (self, val):
output. Append ("called __rxor__")
def __ixor__ (self, val):
output. Append ("called __ixor__")
Return to self
def __rshift__ (self, val):
output. Append ("called __rshift__")
def __rrshift__ (self, val):
output. Append ("called __rrshift__")
def __irshift__ (self, val):
output. Append ("called __irshift__")
Return to self
def __lshift__ (self, val):
output. Append ("__lshift__ called")
def __rlshift__ (self, val):
output. Append ("called __rlshift__")
def __ilshift__ (self, val):
output. Append ("called __ilshift__")
Return to self
x = testall()
x + 1
1 + x
x += 1
x - 1
1 - x
x = 1
x * 1
1 * x
x * = 1
If 1/2 == 0:
x / 1
1 / x
x / = 1
Another thing:
# Real division is indeed, if ' / ' does not match __div__ etc.;
# but preserves expected output file requires that those called.
x.__div__ (1)
x.__rdiv__ (1)
x.__idiv__ (1)
x / / 1
1 / / x
x / / = 1
x % 1
1% x
x % = 1
x * 1
1 * x
x * = 1
x | 1
1. x
x | = 1
x & 1
1 & x
x & = 1
x ^ 1
1 ^ x
x ^ = 1
x > > 1
1 > > x
x > > = 1
x < < 1
1 < < x
x < < = 1
test_self.assertEqual (out, "'------)
__add__ called
__radd__ called
called __iadd__
__sub__ called
__rsub__ called
called __isub__
__mul__ called
__rmul__ called
__imul__ called
__div__ called
__rdiv__ called
__idiv__ called
__floordiv__ called
__rfloordiv__ called
__ifloordiv__ called
__mod__ called
__rmod__ called
__imod__ called
__pow__ called
__rpow__ called
__ipow__ called
__or__ called
__ror__ called
__ior__ called
__and__ called
__rand__ called
__iand__ called
__xor__ called
__rxor__ called
__ixor__ called
__rshift__ called
__rrshift__ called
__irshift__ called
__lshift__ called
__rlshift__ called
__ilshift__ called
("'. splitlines())
def test_main():
with check_py3k_warnings ((int classique division", DeprecationWarning)):
run_unittest (AugAssignTest)
If __name__ == "__main__":
test_main()
Anyone has any idea what it is? What is a bad thing or anything? And how to prevent it to load every time my computer starts? THANK YOU IN ADVANCE!
Well, it's a python script, but what is strange, is that it is not executed. She opened in TextEdit.
Hold down command (⌘) and click on the name in the title bar of TextEdit. This will show a menu path where the file is located.
If this does not work, it may or may not appear in the users and groups of the system preferences pane (click the login items tab) you will see a list of applications (and even files and folders) that opens when you log in.
In the Finder, type Cmd + SHIFT + G. Then enter/Library/StartupItems.
Do the same for/System/Library/StartupItems.
In addition, check out this article to dig more deep:
http://www.Macworld.com/article/2047747/take-control-of-startup-and-login-items. HTML