"""
Check that copy and repr of _context SafeDict don't result in inifinite loop
"""
#pragma repy

# Create an almost shallow copy of _context
# Contained self-reference is moved from _context to _context_copy
_context_copy = _context.copy()
repr(_context)
repr(_context_copy)

"""
Check that copy and repr of _context SafeDict don't result in infinite loop
"""
#pragma repy

# Create an "almost" shallow copy of _context, i.e. the contained reference
# to _context is not copied as such but is changed to reference the new
# _context_copy.
# In consequence repr immediately truncates the contained self-reference
# ("{...}") to prevent an infinite loop.
# Caveat: In a real shallow copy, repr would only truncate the context
# contained in the contained context (3rd level).
_context_copy = _context.copy()
repr(_context)
repr(_context_copy)

Update comment in copycontext unit test
Update comment in copycontext unit test

Following @vladimir-v-diaz's review comment this change adds
more information about how repr works with Python dicts and with
repy's SafeDict to the unit test's comments.
Even more information can be found on the issue tracker
SeattleTestbed/repy_v2#97.
