# Path: pg13/misc.py
# def utcnow():
# def tbframes(traceback):
# def tbfuncs(frames):
# def trace():
# def key_from_pair(pair):
# def multimap(kv_pairs):
# def meth_once(func):
#   def wrapper(self, *args, **kwargs):
# class CallOnceError(Exception):


import pytest
from pg13 import misc

@pytest.mark.xfail
def test_getterby(): raise NotImplementedError

def test_methonce():
  class C:
    @misc.meth_once
    def once(self): return 5
  c = C()
  assert c.once() == 5
  with pytest.raises(misc.CallOnceError): c.once()

def test_trace():
  def f2(): raise ValueError('whatever')
  def f1(): f2()
  trace = None
  try: f1()

# Path: pg13/misc.py
# def utcnow():
# def tbframes(traceback):
# def tbfuncs(frames):
# def trace():
# def key_from_pair(pair):
# def multimap(kv_pairs):
# def meth_once(func):
#   def wrapper(self, *args, **kwargs):
# class CallOnceError(Exception):


# Path: test_pg13/test_misc.py
import pytest
from pg13 import misc


@pytest.mark.xfail
def test_getterby(): raise NotImplementedError

def test_methonce():
  class C:
    @misc.meth_once
    def once(self): return 5
  c = C()
  assert c.once() == 5
  with pytest.raises(misc.CallOnceError): c.once()

def test_trace():
  def f2(): raise ValueError('whatever')
  def f1(): f2()
  trace = None
  try: f1()

  except: trace = misc.trace()