Skip to content

Commit 714e56f

Browse files
committed
Fix other tests setting os
1 parent 8cd990e commit 714e56f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pwnlib/context/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class ContextType(object):
302302
>>> context.os == 'linux'
303303
True
304304
>>> context.arch = 'arm'
305-
>>> vars(context) == {'arch': 'arm', 'bits': 32, 'endian': 'little', 'os': 'linux'}
305+
>>> vars(context) == {'arch': 'arm', 'bits': 32, 'endian': 'little', 'os': 'linux', 'newline': b'\n'}
306306
True
307307
>>> context.endian
308308
'little'
@@ -455,14 +455,14 @@ def __init__(self, **kwargs):
455455

456456

457457
def copy(self):
458-
"""copy() -> dict
458+
r"""copy() -> dict
459459
Returns a copy of the current context as a dictionary.
460460
461461
Examples:
462462
463463
>>> context.clear()
464464
>>> context.os = 'linux'
465-
>>> vars(context) == {'os': 'linux'}
465+
>>> vars(context) == {'os': 'linux', 'newline': b'\n'}
466466
True
467467
"""
468468
return self._tls.copy()
@@ -1086,7 +1086,7 @@ def mask(self):
10861086

10871087
@_validator
10881088
def os(self, os):
1089-
"""
1089+
r"""
10901090
Operating system of the target machine.
10911091
10921092
The default value is ``linux``.

0 commit comments

Comments
 (0)