#NEWLINE# def test_inplace_on_self( self ) : #NEWLINE# #INDENT# t = self . s . copy ( ) #NEWLINE# t |= t #NEWLINE# self . assertEqual ( self , self . s ) #NEWLINE# t &= t #NEWLINE# self . assertEqual ( t , self . s ) #NEWLINE# t -= t #NEWLINE# self . assertEqual ( t , WeakSet ( ) ) #NEWLINE# t = self . s . copy ( ) #NEWLINE# t ^= t #NEWLINE# self . assertEqual ( t , WeakSet ( ) )